-
Notifications
You must be signed in to change notification settings - Fork 332
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 for the linter #1935
fix for the linter #1935
Conversation
b1f34bd
to
1c449cf
Compare
Should we pin to 1.33.2 of golangci-lint instead? |
that might be a better solution. @abhat would it be better to use docker to launch the linter and pin the version that way so that no matter what linter people have locally the same version as CI will be run? |
@JacobTanenbaum that is what I did downstream over the weekend to fix the issue.
|
Yep, this is exactly what I was thinking of. It may be useful to write a Dockerfile and run the linter that way to create a hermetic environment. |
@abhat there is already a way to run the linter in docker |
upgrading the linter hits the regression below Regression in golangci-lint: golangci/golangci-lint#1502 pin the version of the linter and run the linter in docker to ensure a single version is used by CI and locally by developers Signed-off-by: Jacob Tanenbaum <jtanenba@redhat.com>
1c449cf
to
0a9ef9f
Compare
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.
/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.
/lgtm
OCPBUGS-15538,OCPBUGS-19961: Downstream merge 2023-10-10
there seems to be a regression in golangci-lint where the "--modules-download-mode=vendor"
is not supported. Remove the modules-download-mode until the regression
is fixed
Regression Issue: golangci/golangci-lint#1502
Signed-off-by: Jacob Tanenbaum jtanenba@redhat.com
- What this PR does and why is it needed
- Special notes for reviewers
- How to verify it
- Description for the changelog