Skip to content
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

[Fix][golangci-lint]update golangci-lint to support go 1.23 & 1.24 #3094

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

UncleMadeleine
Copy link

Why are these changes needed?

I have seen the issue #3061 who reported Compilation fails for apiserver with go 1.23.5 version. The default golangci-lint version 1.54 doesn't support go 1.23, seeing golangci/golangci-lint#4837. I update the golangci-lint version to 1.64.5 to both support golang 1.23 & 1.24, and fix a few warnings to pass the new version lint. (For both Slice or map: the number of elements in v; if v is nil, len(v) is zero. This wouldn't cause panic)

Related issue number

#3061

Checks

  • [√] I've made sure the tests are passing.
  • Testing Strategy
    -[√] Unit tests
    • Manual tests
    • This PR is not tested :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant