-
Notifications
You must be signed in to change notification settings - Fork 818
Bump golangci to v1.39.0 #4241
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
Bump golangci to v1.39.0 #4241
Conversation
Hello. I've built a new build-image with your change: Please follow instructions at https://cortexmetrics.io/docs/contributing/how-to-update-the-build-image/ (step 1 and 2 are done) and update this PR with this new image. Thank you! |
@pstibrany thank you for pointing to the update process. Made the update |
Thank you. There are now lint errors to be fixed: https://github.com/cortexproject/cortex/pull/4241/checks?check_run_id=2727067541 Do you also want to enable |
@pstibrany I'm working to setup a build locally and target to correct lint errors. I propose to have |
Thank you. Followup PR for promlinter sounds good. |
I'm failing
for reference I ran |
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.
The lint is still failing. Could you take a look and fix warning
too, please?
level=warning msg="[runner] The linter 'golint' is deprecated (since v1.41.0) due to: The repository of the linter has been archived by the owner. Replaced by revive."
level=warning msg="[runner/nolint] Found unknown linters in //nolint directives: golint ignore stutter warning"
pkg/util/validation/errors.go:14:6: type name will be used as validation.ValidationError by other packages, and that stutters; consider calling this Error (golint)
type ValidationError error // nolint: golint ignore stutter warning
Also, I've just merged #4244. Could you update the build-image tag in Makefile
as well, please?
seems to be a larger update (in particular related to incorrect comments in the codebase) As for
I tried various formats without success. Related to golangci/golangci-lint#1450 Might consider going to |
Sounds good to me. Would allow us to do it step-by-step. |
@pracucci please publish build-image |
Doing this right now. |
New image: |
Signed-off-by: Gábor Lipták <[email protected]>
@gliptak Could you take a look at the failing linter, please? |
Signed-off-by: Gábor Lipták [email protected]
What this PR does:
Which issue(s) this PR fixes:
Fixes #
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]