-
Notifications
You must be signed in to change notification settings - Fork 96
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
🌱 bump golang to 1.23.3 and golangci-lint to 1.60.3 #2087
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
39c1cdb
to
da72ba7
Compare
da72ba7
to
36807b0
Compare
7fd0052
to
0fe0188
Compare
/test metal3-centos-e2e-integration-test-main metal3-ubuntu-e2e-integration-test-main |
Bump golang to 1.23.3 and golangci-lint to 1.60.3 which supports Go 1.23. Get rid of deprecated golangci-lint configs, and add timeout to the action, otherwise it'll be timed out in 1 minute. 15 minutes is consistent with "make lint" timeout. Linter fixes: - Fix new linter errors by removing the return value which is always nil (unparam linter), and thus meaningless. - "exportloopref" is not needed from Go 1.22 onwards, replaced by "copyloopvar" in golangci-lint 1.60.2. - Ambiguous string warnings in Wrapf fixed. Signed-off-by: Tuomo Tanskanen <[email protected]>
0fe0188
to
1b288fc
Compare
/test metal3-centos-e2e-integration-test-main metal3-ubuntu-e2e-integration-test-main |
Our local "make lint" and "make test" don't definitely run same stuff as the linter action, this PR was locally clean long time ago, but PR checks came up with issues not seen locally. Quite sad setup ... |
Manual cherry-pick for 1.8 here: #2099 Release 1.7 does not need one as it is going out of support along with 1.9 and Golang 1.22 is supported for the rest of its life. |
Fixes: #2047