Skip to content

You must be logged in to vote

First, I would like to discourage you from using the tools.go pattern because:

  • if your project uses the same library as golangci-lint, you can influence your project or golangci-lint.
  • your project and golangci-lint can use different versions of Go to build. Currently, golangci-lint uses go1.18
    go 1.18

golangci-lint doesn't depend on GCC, you have to do that:

CGO_ENABLED=0 go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest

Replies: 1 comment 2 replies

You must be logged in to vote
2 replies
@jon-whit

@ldez

ldez Apr 1, 2022
Maintainer

Answer selected by ldez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants