Skip to content

Bump minimum Go version to 1.26 and 1.27 to CI - #702

Open
bwesterb wants to merge 2 commits into
mainfrom
bas/126
Open

bwesterb wants to merge 2 commits into
mainfrom
bas/126

Conversation

@bwesterb

@bwesterb bwesterb commented Sep 9, 2026

Copy link
Copy Markdown
Member

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Note

This report is out of date. Scroll down for Devin Review's latest report on this PR.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@Lekensteyn Lekensteyn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

golagnci-lint needs to be updated to at least v2.13.0 for Go 1.27 support (v2.13.3 is the current latest version): https://github.com/golangci/golangci-lint/releases

Can this workaround from #701 also be removed now that the minimum is bumped?

# Pin x/tools to a version compatible with the oldest Go version in the CI matrix.
go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@v0.49.0

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Devin Review found 1 new potential issue.

1 flag not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

run: |
# Pin x/tools to a version compatible with the oldest Go version in the CI matrix.
go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@v0.49.0
go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@latest

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Unpinned shadow analyzer destabilizes CI

When x/tools raises its Go requirement, @latest breaks the Go 1.26 matrix without repository changes. The previous pin kept the analyzer compatible with the oldest compiler.

Prompt for agents
Pin golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow to a tested x/tools release that supports both Go 1.26 and Go 1.27. Keep that version explicit in .github/workflows/ci-actions.yml so CI behavior and minimum-version compatibility do not change when x/tools publishes a new release.
Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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.

2 participants