Skip to content

capability: require Go 1.24 - #264

Merged
thaJeztah merged 1 commit into
moby:mainfrom
kolyshkin:capability-go124
Oct 15, 2026
Merged

thaJeztah merged 1 commit into
moby:mainfrom
kolyshkin:capability-go124

Conversation

@kolyshkin

Copy link
Copy Markdown
Collaborator

Go 1.24+ requires Linux kernel 3.2 or later. This is not a real
limitation for this package, as it relies on
/proc/sys/kernel/cap_last_cap, which was added in Linux 3.2,
and thus does not work on older kernels anyway.

While at it, use range over int in a test (suggested by modernize).

Go 1.24+ requires Linux kernel 3.2 or later. This is not a real
limitation for this package, as it relies on
/proc/sys/kernel/cap_last_cap, which was added in Linux 3.2,
and thus does not work on older kernels anyway.

While at it, use range over int in a test (suggested by modernize).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@thaJeztah
thaJeztah merged commit 5b8698b into moby:main Oct 15, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants