Handling multiple configurations #2432
-
Hi, I'm am currently using different complex configurations, each defined in a separate yaml config file. Is there any best practice for handling multiple configurations? Moving multiple files between hosts and changing file path in the command line can be a lot of work. Ideally, I would like to define all configurations in the same yaml file and call them like
Thanks for helping! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
There's no official or suggested way to do this as far as I know. If you actually have all the files on the machine I think just using the In #2241 there was an implementation to use different local files as |
Beta Was this translation helpful? Give feedback.
There's no official or suggested way to do this as far as I know. If you actually have all the files on the machine I think just using the
--config
flag is what would be easiest. However it sounds like moving the files around is something you want to avoid and support for remote configuration has been requested in #2137. That issue contain some simple suggestions by usingmake
andcurl
but that's not really a part ofgolangci-lint
.In #2241 there was an implementation to use different local files as
presets
but also a way to fetch presets remote with the same mechanism as used bygo modules
. However, the author of the PR closed it since no one did a proper review but personally I would be…