-
Notifications
You must be signed in to change notification settings - Fork 254
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-lint to v1.46.2. #1157
Conversation
/test unit |
Signed-off-by: s3rj1k <[email protected]>
/test-ubuntu-integration-main |
/lgtm |
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.
I think this change is overlapping with https://github.com/metal3-io/baremetal-operator/pull/1149/files
That change bumps linter to v1.47.1 and it's a bad idea, that version has some broken revive linters Still current change can be merged right now and enables to build BMO with golang 1.18 and does not touch k8s libraries. I would prefer to get this landed before that big change, and get a tag release before that big k8s library bump lands. I have issues with vendoring newer k8s API that are present in https://github.com/metal3-io/baremetal-operator/pull/1149/files |
@s3rj1k I have not seen any broken linters so far in #1149, and also I am not sure why it can be a bad idea to use that version (which should work fine with Go 1.18) and rather stick to v1.46.X. |
@furkatgofurov7 golangci/golangci-lint#2999 I assume that this issue will be fixed only in golangci-lint v1.48.1 |
Ack, v1.48.0 was released some time ago, and we could wait for the v1.48.1 and bump it in this PR or 1149 also, please let me know which works for you best. |
@furkatgofurov7 v1.48.1 would be preferable, thanks |
sure, would you update this PR once it is out or want me to do it as part of #1149 ? |
I'll update this one, I hope to have one tag release before K8s libs are bumped |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dtantsur 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 |
@dtantsur Thanks |
Linter bump is needed to support building BMO with golang 1.18, as older version of linter fails to lint when default version of golang compiler is 1.18
(v1.46.2 version is chosen as most stable version that works with 1.17 and 1.18)
Signed-off-by: s3rj1k [email protected]