-
-
Notifications
You must be signed in to change notification settings - Fork 176
Open
Description
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.
golangci-lint features a way to support plugins automatically with a configuration file.
Basically it boils down to:
- having a
.custom-gcl.ymlconfig 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-gclinstead of golangci-lint - run
custom-gclinstead ofgolangci-lint
Describe the solution you'd like.
I'd like for the GitHub action to:
- download and install
golangci-lintas usual (no change to the normal flow) - detect if a
.custom-gcl.ymlexists - 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-gclusing 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
lukasschwab, peterldowns, fhopfensperger, seiyab, n0npax and 5 more