-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: upgrade to 1.21 #10686
chore: upgrade to 1.21 #10686
Conversation
jobs: | ||
vet: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.20.x' | ||
go-version: '1.21.x' | ||
- name: Install tools | ||
run: | | ||
go install golang.org/x/lint/golint@latest && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you restore go install honnef.co/go/tools/cmd/[email protected]
to go install honnef.co/go/tools/cmd/staticcheck@latest
on line 27, below? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest staticcheck requires 1.22: https://github.com/dominikh/go-tools/blob/56172d41b117cc2c2f99f65fe0a790c8d7d7ea66/go.mod#L3
One thing we could consider is only running vet on latest version. We do this in other repos today.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Until now, I thought it was good to run vet on the oldest version in order to keep toolchain
from sneaking into go.mod files in our repo. But maybe we no longer have any oldest version concerns like that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest staticcheck requires 1.22
See you in 2025, staticcheck!
No description provided.