-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Update golangci-lint to v2.3.1 #3911
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: stmcginnis 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 |
github actions runners have bug in the kernel
|
84c0f7e
to
1517337
Compare
1517337
to
065f387
Compare
something broke badly with a number of the actions, we're going to have to get that fixed |
ok so it's the ones on 22.04, ip6tables is broken there |
we can bypass the actions, they're not relevant to only bumping golangci-lint I want to run it again now that .go-version is on 1.22 though |
@stmcginnis can you rebase (picks up actions fixes :/) and |
065f387
to
00282fe
Compare
Sorry, this had dropped off my radar. Will get rebased and updated. The Go 1.25 release reminded me of this. Saw this nice update in the release notes:
|
00282fe
to
e48d099
Compare
Yeah! 🎉 , been waiting on this bug. I think, it might even be something to consider soonish as 1.21+ becomes available in stable / LTS distros to leverage this, but we probably don't want it writing in the current version every time we touch go mod ... |
we might have to hold a little on 1.25, runc for example can be slightly sensitive to go upgrades, I haven't checked into that yet |
Golangci-lint has released a new major version that includes some changes to how it is configured, along with the usual linter updates that come with every release. This updates the golangci-lint version we use to v2.3.1 (the current latest release) and updates the config file to conform to the new format. Also includes quite a few trivial updates to address the new warnings from the updated linters. Signed-off-by: Sean McGinnis <[email protected]>
e48d099
to
a6b3a95
Compare
Kubernetes/Kubernetes is also still not updated, I do want to leverage 1.25 though 😅 We're going to have go keep an eye out for our controllers attempting to become cgroup aware in the weird nested cgroup environment 🙃 |
Is there a reason to hold on this until 1.25 is in use? |
Golangci-lint has released a new major version that includes some changes to how it is configured, along with the usual linter updates that come with every release.
This updates the golangci-lint version we use to v2.3.1 (the current latest release) and updates the config file to conform to the new format. Also includes quite a few trivial updates to address the new warnings from the updated linters.