-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Use the system-installed version of golangci-lint. #6560
Conversation
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.
So… doing that would break the Makefile
though 😅
I would rather update the version here or adapt the presubmit.sh
file ? (or remove the GOLANGCILINT
variable from the Makefile.
Basically, we need to decide what is the source of truth for the CI. As of today, it's the one in the Makefile, so doing make golangci-lint
gives you the guarantee you will have the same version as you do on the CI (no matter what the container image or the system has installed) — and I do like that to be honest 😝
Yeah, you're right. 😢 Can we go forward with this to unblock me while you sort out the larger issue? |
See this thread: https://tektoncd.slack.com/archives/CJ4ERJWAU/p1681920119203019 Context: #5899 Disabled `revive` linter; upgrade results in a high number of new unused variables not previously identified in the previous version.
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.
Yes, as is (with updating the GOLANGCI_VERSION in the Makefile), let's go
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester 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 |
Changes
See this thread: https://tektoncd.slack.com/archives/CJ4ERJWAU/p1681920119203019
Context: #5899
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep/kind misc
/assign vdemeester
Release Notes