-
Notifications
You must be signed in to change notification settings - Fork 63
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
ci: update Go 1.21 support #202
Conversation
.github/workflows/validate.yml
Outdated
@@ -33,7 +33,7 @@ jobs: | |||
- uses: actions/checkout@v3 | |||
- uses: actions/setup-go@v3 | |||
with: | |||
go-version: 1.20.x | |||
go-version: 1.21.x | |||
- uses: golangci/golangci-lint-action@v3 | |||
with: | |||
version: v1.51 |
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.
We probably need to update golangci-lint as well, as go1.21 support was added in v1.54; https://github.com/golangci/golangci-lint/releases/tag/v1.54.0
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.
Done.
Signed-off-by: Michal Biesek <[email protected]>
Ref: https://github.com/golangci/golangci-lint/releases/tag/v1.54.1 Signed-off-by: Michal Biesek <[email protected]>
798c91f
to
d47b9f7
Compare
Ref: https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#if-return Signed-off-by: Michal Biesek <[email protected]>
Looks like the updated linter doesn't like the unused (but named) arguments in the stubs. I guess we can either update the linter settings (in golangci-lint.yml) or remove the names Not sure what's best here; having the names could still be useful to understand the arguments that are passed to the stubs, but perhaps that's not a big issue;
|
LGTM |
@rhatdan |
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.
LGTM if CI is happy 😄
thanks!
@rhatdan could you re-LGTM this one? |
LGTM |
@thaJeztah @rhatdan just FYI: The new CI jobs for Go 1.21.x are not marked as |
No description provided.