Skip to content

CI: fix modernize job failure#5072

Merged
rata merged 4 commits intoopencontainers:mainfrom
kolyshkin:ci-125
Dec 17, 2025
Merged

CI: fix modernize job failure#5072
rata merged 4 commits intoopencontainers:mainfrom
kolyshkin:ci-125

Conversation

@kolyshkin
Copy link
Copy Markdown
Contributor

@kolyshkin kolyshkin commented Dec 15, 2025

  1. libc/int: use strings.Builder

    Generated by modernize@latest (v0.21.0).

  2. ci: use latest Go for modernize job

    Since we use modernize@latest, it may require latest Go as well (and now it does),
    so use "go-version: stable" explicitly (which resolves to latest Go).

    This fixes the issue with CI:

    go: golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest: golang.org/x/tools/gopls@v0.21.0 requires go >= 1.25 (running go 1.24.11; GOTOOLCHAIN=local)

  3. ci: drop -test from modernize run

    The modernize documentation used to suggest -test flag but it's not
    needed as it is enabled by default. Drop it.

  4. ci: use Go 1.25 for validate jobs

@kolyshkin kolyshkin added area/ci backport/1.4-pr A backport PR to release-1.4 backport/1.3-todo A PR in main branch which needs to be backported to release-1.3 backport/1.4-todo A PR in main branch which needs to backported to release-1.4 and removed backport/1.4-pr A backport PR to release-1.4 backport/1.3-todo A PR in main branch which needs to be backported to release-1.3 labels Dec 15, 2025
@kolyshkin
Copy link
Copy Markdown
Contributor Author

@opencontainers/runc-maintainers can this please be fast-tracked?

Copy link
Copy Markdown
Member

@rata rata left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@rata rata enabled auto-merge December 15, 2025 21:36
Generated by modernize@latest (v0.21.0).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Since we use modernize@latest, it may require latest Go as well (and now it does),
so use "go-version: stable" explicitly (which resolves to latest Go).

This fixes the issue with CI:

> go: golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest: golang.org/x/tools/gopls@v0.21.0 requires go >= 1.25 (running go 1.24.11; GOTOOLCHAIN=local)

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
The modernize documentation used to suggest -test flag but it's not
needed as it is enabled by default. Drop it.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@rata rata merged commit 58c2e4a into opencontainers:main Dec 17, 2025
38 checks passed
@kolyshkin kolyshkin added backport/1.4-done A PR in main branch which has been backported to release-1.4 and removed backport/1.4-todo A PR in main branch which needs to backported to release-1.4 labels Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci backport/1.4-done A PR in main branch which has been backported to release-1.4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants