Skip to content

[WIP] Test toolchain enforcement - #13101

Closed
SergeyKanzhelev wants to merge 2 commits into
containerd:mainfrom
SergeyKanzhelev:test-toolchain-enforcement
Closed

SergeyKanzhelev wants to merge 2 commits into
containerd:mainfrom
SergeyKanzhelev:test-toolchain-enforcement

Conversation

@SergeyKanzhelev

Copy link
Copy Markdown
Contributor

I was surprised this PR #13090 passed CI even though it has 1.25.8 go with go.mod asking for 1.26. This PR is just a test of GOTOOLCHAIN: local enforcement (see commits)

This change updates the Go version from 1.25.8 to 1.26.0 across the
repository, including CI configurations, build scripts, and development
environments.

It also fixes two linter issues discovered after upgrading the Go version:
- core/snapshots/storage/bolt.go: incorrect printf format for uint64
- plugins/transfer/plugin.go: incorrect printf format for int and unused variable

The golangci-lint version in script/setup/install-dev-tools is also updated to v2.9.0
to match CI.

Signed-off-by: Sergey Kanzhelev <[email protected]>
@SergeyKanzhelev

Copy link
Copy Markdown
Contributor Author

this seems to have worked:

+ build
go: go.mod requires go >= 1.26.0 (running go 1.25.8; GOTOOLCHAIN=local)
make: *** [Makefile:205: build] Error 1
Error: Process completed with exit code 2.

@samuelkarp

samuelkarp commented Mar 23, 2026 •

Copy link
Copy Markdown
Member

this seems to have worked

Mind changing this PR to just the GOTOOLCHAIN: local bit so we can get that enforced in CI?

Edit: Thanks, you did that in #13102 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants