opencontainers / opencontainers/cgroups

proposal: use os.Root / root.Open

Open
#8 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
29
Forks
32
PR merge metrics
No merged PRs in 30d

Description

Since Go 1.24 we have https://pkg.go.dev/os@master#Root meaning we can use openat implicitly.

For cgroup v2, it makes sense to keep cgroup root lazy opened and use it.

Alas, it has to wait until we switch to go 1.24 as a minimally supported version.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by reading the Go os.Root documentation and the repository's cgroup v2 implementation, then confirm the minimum Go version change needed; done means cgroup v2 keeps its root lazily opened and uses Root.Open after Go 1.24 support is available.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.