Add support for `go tool golangci-lint`
Neokil opened this issue · 1 comments
Neokil commented
Welcome
- Yes, I understand that the GitHub action repository is not the repository of golangci-lint itself.
- Yes, I've searched similar issues on GitHub and didn't find any.
Your feature request related to a problem? Please describe.
Go 1.24 added support for go tool directive. This allows us to manage the versions of our tools much better, but this is currently not supported by this action.
Describe the solution you'd like.
It would be great if we could have an option for install-mode to use the go-tool installation.
Describe alternatives you've considered.
Currently I am not using this action but a plain "go tool golangci-lint run" but that is slightly worse in the capabilities to only validate the diff.
Additional context.
No response
ldez commented
Hello,
there is no need for a specific install-mode: the GitHub Action can already read the go.mod to detect the version of golangci-lint.
Reminder: using go tool to install golangci-lint is strongly not recommended.
https://golangci-lint.run/welcome/install/#install-from-sources