Skip to content

deps: switch away from runc/libct/devices#6809

Merged
nalind merged 2 commits into
containers:mainfrom
kolyshkin:runc-lc-dev
Apr 23, 2026
Merged

deps: switch away from runc/libct/devices#6809
nalind merged 2 commits into
containers:mainfrom
kolyshkin:runc-lc-dev

Conversation

@kolyshkin
Copy link
Copy Markdown
Contributor

@kolyshkin kolyshkin commented Apr 23, 2026

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

  1. define: switch away from runc/libct/devices

    The github.com/opencontainers/runc/libcontainer/devices package was
    mostly moved to github.com/opencontainers/cgroups/devices/config
    for runc v1.3. In particular, the Device type is now deprecated,
    and is an alias to cgroups/devices/config.Device).

    The relevant change was done in commit 9ac03e6 but somehow it missed
    the define package.

  2. Remove runc/libcontainer/devices dependency

    The github.com/opencontainers/runc/libcontainer/devices package was
    mostly moved to github.com/opencontainers/cgroups/devices/config
    (see e.g. commit commit 9ac03e6).

    The rest of runc/libcontainer/devices now lives in moby/sys/devices
    (see devices: move libcontainer/devices to moby/sys moby/sys#212). The package is deprecated
    since runc v1.5 and will be removed from runc v1.6.

    Let's switch now to not worry later.

    PS vendor/github.com/opencontainers/runc/libcontainer/devices is not
    removed because it is still being used by common/pkg/parse. This is
    addressed by common/pkg/parse: switch away from runc/libct/devices container-libs#781

How to verify it

Existing tests should be adequate.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

See also:

Does this PR introduce a user-facing change?

NONE

The github.com/opencontainers/runc/libcontainer/devices package was
_mostly_ moved to github.com/opencontainers/cgroups/devices/config
for runc v1.3. In particular, the Device type is now deprecated,
and is an alias to cgroups/devices/config.Device).

The relevant change was done in commit 9ac03e6 but somehow it missed
the define package.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
The github.com/opencontainers/runc/libcontainer/devices package was
_mostly_ moved to github.com/opencontainers/cgroups/devices/config
(see e.g. commit commit 9ac03e6).

The rest of runc/libcontainer/devices now lives in moby/sys/devices
(see moby/sys#212). The package is deprecated
since runc v1.5 and will be removed from runc v1.6.

Let's switch now to not worry later.

PS vendor/github.com/opencontainers/runc/libcontainer/devices is not
removed because it is still being used by common/pkg/parse. This is
addressed by containers/container-libs#781

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Apr 23, 2026
Copy link
Copy Markdown
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nalind nalind added the No New Tests Allow PR to proceed without adding regression tests label Apr 23, 2026
@nalind
Copy link
Copy Markdown
Member

nalind commented Apr 23, 2026

LGTM

@nalind nalind merged commit 7209af7 into containers:main Apr 23, 2026
39 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

No New Tests Allow PR to proceed without adding regression tests size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants