Skip to content
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

Merged
merged 3 commits into from
Aug 15, 2024
Merged

chore: upgrade to 1.21 #10686

merged 3 commits into from
Aug 15, 2024

Conversation

codyoss
Copy link
Member

@codyoss codyoss commented Aug 14, 2024

No description provided.

@codyoss codyoss requested review from jba, eliben, a team and shollyman as code owners August 14, 2024 21:04
@codyoss codyoss requested a review from cindy-peng August 14, 2024 21:04
@codyoss codyoss added the automerge Merge the pull request once unit tests and other checks pass. label Aug 14, 2024
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 && \
Copy link
Member

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!

Copy link
Member Author

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.

Copy link
Member

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.

Copy link
Member

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!

@codyoss codyoss merged commit b9f796e into googleapis:main Aug 15, 2024
343 of 345 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Aug 15, 2024
@codyoss codyoss deleted the to-123 branch August 15, 2024 13:09
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.

3 participants