-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Required access since v1.44.0 ist undocumented #2523
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
Hello, We have not changed something related to that, the only thing that can produce that is a change inside Go or the official Go tooling. Can you retry with golangci-lint v1.43? |
Hi @ldez, I've used |
I see the problem, you must disable at least gosimple and unused. |
Ok, so it's more of a change in these linters than in golangci-lint. As I said, I already solved the problem by changing the environment settings. You can close this issue if you think it has nothing to do with golangci-lint. I just found it strange that the tool shows me errors even though 1 minor release before everything was fine. |
You are using one or more linters that failed, previously we "silently" failed. In your case the problem is with |
Do you mean "silently failed" like it does not tell me that the linter does not work at all? |
Before when a linter failed (a real failure not just linter reports), golangci-lint just displayed a warning. The related PR #2471 Your problem is not related to staticcheck itself or golangci-lint, but to the fact that you ignored the important warning. |
Thank you for the explanation :) |
Welcome
Description of the problem
I've updated golangci-lint from v1.43.0 to v1.44.0. Since then I get an error when running the tool inside an environment which does not have full access to all 3rd party libraries from go.mod. This can happen when private libraries are used inside the go project.
The error disappears when I completely setup the environment including a setup of
GOPRIVATE
and proper access to the secured libraries (I use git for this purpose) but I think it should be mentioned anywhere in the docs that since v1.44.0 golangci-lint needs access to all libraries from go.mod.Version of golangci-lint
Used docker image: golangci/golangci-lint:v1.44.0-alpine@sha256:8ac9a08a9e2f627cdc2dcae7255308ca63aa56f3015bb9d3d650692b1c52c768
Configuration file
Go environment
(this is the working environment)
Verbose output of running
Code example or link to a public repository
The text was updated successfully, but these errors were encountered: