-
Notifications
You must be signed in to change notification settings - Fork 1.4k
🌱 Update golangci-lint and Go version for golangci-lint workflow #6737
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
🌱 Update golangci-lint and Go version for golangci-lint workflow #6737
Conversation
|
Hi @oscr. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
We need a version which includes #6350 (comment) /hold |
33b29e1 to
55651d9
Compare
|
Perfect. Thank you! lgtm so far /ok-to-test |
|
Summary of learnings from #6943: v1.47.1 does not work due to performance issues in the revive linter. v1.47.2 disables the problematic linters allowing that version of golangci-lint to be used on CAPI at the cost of some linter coverage. At this point we could:
|
|
Relevant for discussing if to delay or not: golangci/golangci-lint#2997 (comment) List of disabled linters:
|
55651d9 to
f9a3a9e
Compare
|
I just want to highlight a change. When I cherry picked the changes from #6943 I got some So I temporary allowed unused in I this ok? |
Yeah - that's perfectly fine I think. |
|
/test pull-cluster-api-e2e-informing-main |
|
Part of #5968 |
killianmuldoon
left a comment
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.
Could you also bump the go versions in .golangci.yml? I think it's in there twice.
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| */ | ||
|
|
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.
🤯
043fa69 to
a1693ec
Compare
killianmuldoon
left a comment
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
a1693ec to
1f42343
Compare
… for lint workflow Also fix new lint findings
1f42343 to
1075dd2
Compare
|
Sorry for the spam. |
|
No worries :) /lgtm cc @killianmuldoon for a final look |
killianmuldoon
left a comment
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
Thanks again for following this one through @oscr!
|
Yup thank you very much! /approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sbueringer The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
Updates the GitHub workflow to use Go 1.18 and bumps golangci-lint 1.44.0 -> 1.48.0. Also fixes findings by the upgraded linter.
Reference sources:
https://github.com/golangci/golangci-lint/releases
golangci/golangci-lint#2438
Part of #5968
Fixes #6350