-
Notifications
You must be signed in to change notification settings - Fork 641
🐛 fix: bumps golangci-lint to work with go 1.24+ #5793
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
base: main
Are you sure you want to change the base?
Conversation
|
/approve Thank you! Fixes the problem described in #5792 (comment) |
|
LGTM label has been added. Git tree hash: dc91c08ef862a03f29d8982b90296bfbac48c09d
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dlipovetsky 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 |
3c0cfe4 to
d6529ed
Compare
33f99a9 to
4e6cc9f
Compare
863fb3b to
b28f9be
Compare
|
/test pull-cluster-api-provider-aws-e2e-blocking |
8ecc4f4 to
f629ebd
Compare
f5a6466 to
9c9071e
Compare
We use golangci-lint to build the Kubernetes API Linter (KAL), and golangci-lint calls Here are some issues reported for other projects that call git with flags:
Looks like golangci-lint fixed this in golangci/golangci-lint#6205, and released the fix in https://github.com/golangci/golangci-lint/releases/tag/v2.7.0 @faiq Please try the v2.7.0 release in this PR 🙏 |
|
Ack, golangci-lint v2.7.0 solves this issue. We also tackled it in CAPI:
|
|
I'd say let's go with the same approach that core CAPI went with :) |
d9cf854 to
2bdda7d
Compare
|
/retest |
| - linters: | ||
| - staticcheck | ||
| text: "s.scope.ControlPlaneLoadBalancer is deprecated" |
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 should remove this ignore and address the actual method change to the new one in a later pr.
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 create an issue, if there's not one? 🙏
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.
|
Thanks folks for the help! I was going crazy debugging that error :) |
|
/lgtm |
|
LGTM label has been added. Git tree hash: 52d55f8b1461552d7f4d7a065278da958379199f
|
|
/test pull-cluster-api-provider-aws-verify |
|
e2e failed due to |
2bdda7d to
aef24ac
Compare
|
New changes are detected. LGTM label has been removed. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
bumps golangci lint to work with go 1.24+
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Checklist:
Release note: