Skip to content

Conversation

@kolyshkin
Copy link
Contributor

Please see individual commits for details.

Generated by

	go fix ./...

Signed-off-by: Kir Kolyshkin <[email protected]>
1. Replaces interface{} with any.
2. Use slices.Contains where appropriate.

Generated by

	modernize -fix ./...

Signed-off-by: Kir Kolyshkin <[email protected]>
The same package is imported twice for no reason.

Reported by staticcheck:

> generate/seccomp/seccomp_default.go:6:2: ST1019: package "github.com/opencontainers/runtime-spec/specs-go" is being imported more than once (staticcheck)
>	"github.com/opencontainers/runtime-spec/specs-go"
>	^
>generate/seccomp/seccomp_default.go:7:2: ST1019(related information): other import of "github.com/opencontainers/runtime-spec/specs-go" (staticcheck)
>	rspec "github.com/opencontainers/runtime-spec/specs-go"

Signed-off-by: Kir Kolyshkin <[email protected]>
Use switch instead of if/else where appropriate.

Signed-off-by: Kir Kolyshkin <[email protected]>
@kolyshkin kolyshkin requested a review from a team as a code owner November 6, 2025 03:28
These are the ones we don't want to fix.

Signed-off-by: Kir Kolyshkin <[email protected]>
Staticcheck complains:

> validation/linux_cgroups_relative_cpus/linux_cgroups_relative_cpus.go:14:17: ST1023: should omit type string from declaration; it will be inferred from the right-hand side (staticcheck)
> 	var cpus, mems string = "0-1", "0"
> 	               ^

Fix this, and while at it, use constants.

Signed-off-by: Kir Kolyshkin <[email protected]>
Or, in other words, un-Yoda-fy.

Signed-off-by: Kir Kolyshkin <[email protected]>
Signed-off-by: Kir Kolyshkin <[email protected]>
While at it, bump lint job actions to latest versions.

Signed-off-by: Kir Kolyshkin <[email protected]>
In addition to the one from go.mod (currently 1.21).

Signed-off-by: Kir Kolyshkin <[email protected]>
Copy link
Contributor

@marquiz marquiz left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@klihub klihub left a comment

Choose a reason for hiding this comment

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

LGTM

@klihub
Copy link
Contributor

klihub commented Nov 6, 2025

/cc @thaJeztah

@aojea
Copy link

aojea commented Nov 7, 2025

@AkihiroSuda @giuseppe is this something you can help here?
Ecosystem is deadlocked in this dependency to move to 1.3.0 runtime-spec and this is needed to unblock it

containerd/nri#242 and NVIDIA/nvidia-container-toolkit#1423 depends on #795 and that depends on this

Copy link
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

@aojea
Copy link

aojea commented Nov 7, 2025

Thanks it seems merge criteria was met now, so we just need someone to click the button 😅

Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

LGTM, but I don't think I should click the merge button as I'm not a maintainer here
https://github.com/opencontainers/runtime-tools/blob/master/MAINTAINERS

@AkihiroSuda
Copy link
Member

ping @opencontainers/runtime-tools-maintainers

@klihub
Copy link
Contributor

klihub commented Nov 7, 2025

@mrunalp Could you merge this ?

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.

7 participants