-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Cannot install golangci-lint from source on Go <= 1.15 #1969
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
Hello, We changed our Go version policy, we now support only go1.15 and go1.16 like the Go team. You can use the binary with go1.14 |
@ldez I think you should update the docs: https://golangci-lint.run/usage/install/#install-from-source 😉 |
I fail to see what's wrong with the docs?
All of this holds true, it recommend you to not install with |
@idez @bombsimon Thanks to both of your for your patience and answers 👍 I have also put a proposal here: #1657 (comment) |
Description of the problem
golangci-lint started to "indirectly" depend on a Go standard library https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/buildtag package which is available only starting from Go 1.16
Example failure on Go 1.14:
Moreover, the information here is no longer true: https://golangci-lint.run/usage/install/#install-from-source
This is especially not good for repositories using the https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module approach for installing additional Go-based tooling.
I think it would be good to support the 3 latest minor versions of Go. Or at least please fix the docs.
Version of golangci-lint
v1.40.0
Go environment
Any Go < 1.16
The text was updated successfully, but these errors were encountered: