Repository navigation
Update Go 1.26.8 and 1.27.1 - #14087
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
go.mod now requires Go 1.27.1 while CI still runs Go 1.26.8, which will cause the Go 1.26.8 jobs to fail.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR updates containerd’s pinned/default Go toolchain version across local dev, CI, and build/test artifacts, aiming to default to Go 1.27.1 while exercising Go 1.26.8 in CI.
Changes:
- Bump default Go version references from 1.27.0 → 1.27.1 across scripts, Dockerfiles, devcontainer, and GitHub workflows/actions.
- Update CI matrix testing from 1.26.6/1.27.0 → 1.26.8/1.27.1.
- Update
go.modgodirective to 1.27.1 (note: this currently conflicts with the CI goal of testing Go 1.26.8).
File summaries
| File | Description |
|---|---|
| script/vm/provision.sh | Updates VM provisioning default Go version to 1.27.1. |
| script/setup/prepare_env_windows.ps1 | Updates Windows env preparation Go package version to 1.27.1. |
| go.mod | Updates module Go version directive to 1.27.1 (currently blocks Go 1.26.8 CI runs). |
| contrib/fuzz/oss_fuzz_build.sh | Updates OSS-Fuzz Go tarball download/extract version to 1.27.1. |
| contrib/Dockerfile.test | Updates test Dockerfile ARG GOLANG_VERSION to 1.27.1. |
| .github/workflows/release/Dockerfile | Updates release workflow Dockerfile Go version ARG to 1.27.1. |
| .github/workflows/ci.yml | Updates CI matrix Go versions to 1.26.8 and 1.27.1. |
| .github/workflows/api-release.yml | Updates API release workflow GO_VERSION to 1.27.1. |
| .github/actions/install-go/action.yml | Updates reusable install-go action default to 1.27.1. |
| .devcontainer/devcontainer.json | Updates devcontainer Go feature version to 1.27.1. |
Review details
- Files reviewed: 10/10 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
You will have to update |
There was a problem hiding this comment.
🟢 Approval recommended
The version bumps are consistent across scripts, CI, and build tooling, and no remaining references to the prior Go versions were found in the relevant areas.
Review details
- Files reviewed: 10/10 changed files
- Comments generated: 0 new
- Review effort level: Lite
| go-version: | ||
| required: true | ||
| default: "1.26.6" | ||
| default: "1.27.1" |
There was a problem hiding this comment.
this one should probably be 1.26.x?
There was a problem hiding this comment.
or is the default 1.27 now, with 1.26 as extra?
There was a problem hiding this comment.
Yeah forgot that this one impacts the CI. Dropped this one, and will keep it for a follow up because it also needs the golangci-lint update as mentioned by @estesp
There was a problem hiding this comment.
🟡 Changes recommended
The reusable install-go action now defaults to 1.26.8 while multiple workflows call it without a version, which contradicts the stated goal of making 1.27.1 the default toolchain.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 10/10 changed files
- Comments generated: 1
- Review effort level: Lite
There was a problem hiding this comment.
🟢 Approval recommended
The change is a consistent version bump across all touched build/test entrypoints with no remaining old Go-version references found for these specific versions.
Review details
- Files reviewed: 10/10 changed files
- Comments generated: 0 new
- Review effort level: Lite
| module github.com/containerd/containerd/v2 | ||
|
|
||
| go 1.26.6 | ||
| go 1.26.8 |
There was a problem hiding this comment.
This one can probably stay on the old version (we shouldn't be updating this one in general)
There was a problem hiding this comment.
🟡 Changes recommended
The PR title/description claims Go toolchain bumps to go1.27.1/go1.26.8, but the included changes only update linting/modernize code and do not actually update the Go versions used by CI as described.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 29/29 changed files
- Comments generated: 1
- Review effort level: Lite
| - uses: ./.github/actions/install-go | ||
| - uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1 | ||
| with: | ||
| version: v2.9.0 | ||
| version: v2.13.2 | ||
| skip-cache: true |
Signed-off-by: Paweł Gronowski <[email protected]>
Signed-off-by: Paweł Gronowski <[email protected]>
Signed-off-by: Paweł Gronowski <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
The changes are straightforward version bumps applied consistently across the referenced scripts and workflows with no functional logic changes.
Review details
- Files reviewed: 9/9 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
Update the Go 1.27 used for building to go1.27.1 and Go 1.26 used for tests in CI to go1.26.8.