Add support for executing golangci-lint using go run
method
#664
Labels
duplicate
This issue or pull request already exists
go run
method
#664
Welcome
Your feature request related to a problem? Please describe.
This action already supports detecting version from
go.mod
file whenversion
param is not set, but thegolangci-lint
binary is still downloaded from the internet. This may be unwanted for security reasons, but also since Go is already aware of what makes upgolangci-lint
executable, I believe a better approach would be to use Go to run the binary.Describe the solution you'd like.
Instead of fetching binary version from the internet, it can be run as
go run github.com/golangci/golangci-lint/cmd/golangci-lint ...
which will use the version defined in Go modules.Describe alternatives you've considered.
Additional context.
No response
The text was updated successfully, but these errors were encountered: