-
Notifications
You must be signed in to change notification settings - Fork 286
Updates linter version and args in Makefile #9196
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: master
Are you sure you want to change the base?
Conversation
This change: - Updates the linter version defined in the Makefile to match what is being run on github actions (1.60.1 -> 1.64.8). This means the linter is compiled with go 1.24, rather than 1.23, fixing typing issues. - Removes the flag enabling exportloopref, which is deprecated as of go 1.22
/ok-to-test |
@theobarberbany This doesn't fix |
In my local testing, this appears to work?
|
Yeah, that fixed it. Incidentally the latest kubebuilder scaffolding has a pattern which doesn't suffer from this. e.g. https://github.com/k-orc/openstack-resource-controller/blob/0d339b3062ceeaa01cf21258a3d8eb7442f8b1bd/Makefile#L328C1-L332C1 |
/assign @feiskyer @MartinForReal |
@mdbooth that would be nice yes, in the interest of fixing this we could merge this and if someone has bandwidth to follow up with a change along those lines, that might be welcome? |
make lint works for me locally, my go version is 1.24.2. |
https://github.com/kubernetes-sigs/cloud-provider-azure/blob/master/.github/workflows/lint.yaml lint job in ci pipeline |
/lgtm |
Thanks @nilo19 would you be able to approve if you're happy then? |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nilo19, theobarberbany 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 type of PR is this?
/kind cleanup
/kind failing-test
What this PR does / why we need it:
This change:
Updates the linter version defined in the Makefile to match what is being run on github actions (1.60.1 -> 1.64.8). Anyone using the makefile (e.g in a fork) is facing issues because of this :(
This means the linter is compiled with go 1.24, rather than 1.23, fixing typing issues.
Removes the flag enabling exportloopref, which is deprecated as of go 1.22
Which issue(s) this PR fixes:
Anyone running
make lint
locally or in a fork.Special notes for your reviewer:
Does this PR introduce a user-facing change?