Welcome
Your feature request related to a problem? Please describe.
golangci-lint features a way to support plugins automatically with a configuration file.
Basically it boils down to:
- having a
.custom-gcl.yml config file
- building a custom binary using
golangci-lint custom
- declaring and using the custom plugin(s) in
.golangci.yml
- and then using the custom binary
./custom-gcl instead of golangci-lint
- run
custom-gcl instead of golangci-lint
Describe the solution you'd like.
I'd like for the GitHub action to:
- download and install
golangci-lint as usual (no change to the normal flow)
- detect if a
.custom-gcl.yml exists
- compute the hash of the file and check the cache
- if the cache is empty run
golangci-lint custom (or use the cached version)
- cache the result binary
custom-gcl using a hash sum of the .custom-gcl.yml
Describe alternatives you've considered.
I'm currently doing the above manually without using the GitHub action
Additional context.
I want to use nilaway as part of my CI, but it's only supported with golangci-lint via the plugin system. See: https://github.com/uber-go/nilaway?tab=readme-ov-file#golangci-lint--v1570
Welcome
Your feature request related to a problem? Please describe.
golangci-lint features a way to support plugins automatically with a configuration file.
Basically it boils down to:
.custom-gcl.ymlconfig filegolangci-lint custom.golangci.yml./custom-gclinstead of golangci-lintcustom-gclinstead ofgolangci-lintDescribe the solution you'd like.
I'd like for the GitHub action to:
golangci-lintas usual (no change to the normal flow).custom-gcl.ymlexistsgolangci-lint custom(or use the cached version)custom-gclusing a hash sum of the.custom-gcl.ymlDescribe alternatives you've considered.
I'm currently doing the above manually without using the GitHub action
Additional context.
I want to use nilaway as part of my CI, but it's only supported with golangci-lint via the plugin system. See: https://github.com/uber-go/nilaway?tab=readme-ov-file#golangci-lint--v1570