golangci-lint wrapper
This project is a wrapper around golangci-lint that can be used as a Go tool.
The wrapper will automatically download golangci-lint, save it in a subdirectory
of your project, and run it from there once it's been downloaded.
Install:
go get -tool github.com/francescomari/golangci-lint-wrapper
Install and run the latest version of golangci-lint:
go tool golangci-lint-wrapper run
Alternatively, install and run a specific version of golangci-lint:
GOLANGCI_LINT_VERSION=2.7.2 go tool golangci-lint-wrapper
You might want to add the .tools directory to your .gitignore:
echo .tools >>.gitignore
The wrapper only downloads golangci-lint the first time it's invoked. After
that, the local copy in the .tools directory is used. If you want to force the
wrapper to download the executable again, remove golangci-lint (or
golangci-lint.exe) from the .tools directory and invoke the wrapper again.