-
-
Notifications
You must be signed in to change notification settings - Fork 381
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
Mention GOFLAGS in documentation as we don't have a -mod
flag
#506
Labels
Comments
Noted, we'll mention GOFLAGS in the docs. See also golang/go#27227 and golang/go#30240 |
-mod
flag
|
-mod
flag-mod
flag
Is |
If you want to use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is more of a documentation ticket. This should probably make its way to the readme or some other document.
staticcheck
will fail if you don't havegit
installed. This is becausego list
will "helpfully" try to install deps it thinks are missing.The error looks like this:
If you use
go build -mod vendor
and have avendor/
directory, then this will cause you problems. To make the-mod vendor
setting global you have to setGOFLAGS
.Then
staticcheck
will work.The text was updated successfully, but these errors were encountered: