-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
golangci-lint which was installed from Homebrew cannot load a plugin #1182
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
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
Can confirm, this doesn't work for the reason @tenntenn stated. Unfortunately, it seems like that flag is required to build some of the linux executables. I don't know enough about goreleaser configuration at the moment to propose a way to fix this for as many distributions as possible without breaking the rest - and I'm not sure if that would even be a desirable state to be in? I will say, my company has been using it without a problem just by fetching the git repo and building locally. It's not the recommended way, obviously, but it has worked reasonably well for us for the past 6 months or so. |
Thank you for confirming the issue. I understood that the CGO_ENABLED cannot change for building of some Linux distributions. I think improve the issue by adding a note of it on the document. |
We could try to use @tenntenn, while I do understand your problem I don't think we can help a lot. |
Thank you for creating the issue!
Please include the following information:
Version of golangci-lint
Config file
Go environment
Verbose output of running
I had installed golangci-lint via brew as below.
The binary of golangci-lint cannot load a private linter via a plugin.
I think the binary had been built with
CGO_ENABLED=0
.When
CGO_ENABLED
had set0
,plugin
package does not work.The text was updated successfully, but these errors were encountered: