How to enable only set of managers when combining presets #37059
Replies: 3 comments 15 replies
-
|
However you should also consider using packageRules instead of enabledManagers. The only difference is that enabledManagers totally stops the manager's package files from being parsed, which is quite unnecessary because parsing is very fast (typically < 1s). You could do something like this:
These subsequent rules would complement each other, essentially like "merge". |
Beta Was this translation helpful? Give feedback.
-
|
Hi there, Please locate the debug message If you self-host Renovate: make sure you run Renovate with Find the relevant dependency/dependencies in the log message, and copy/paste those parts into this discussion. If you do not know which bits we need, you can copy/paste the full log message. Read the Renovate docs, Troubleshooting to learn more about getting the docs, and getting the correct type of logs. Thanks, the Renovate team |
Beta Was this translation helpful? Give feedback.
-
|
Hi there, This is intended as a polite, automated request that users avoid We know it might be common elsewhere but we participate in hundreds of discussions a week and would need to turn off GitHub mobile notifications if we were mentioned in every one. As a general rule, we will read and respond to all discussions in this repository, so there is no need to mention us. Thanks, the Renovate team |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How are you running Renovate?
Self-hosted Renovate
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
GitHub, Renovate 41.35.0
Please tell us more about your question or problem
Hi,
I just started writing my own Renovate presets to avoid duplication of config across repos.
My goal is to only enable managers explicitly. Without presets I used
enabledManagersand listed all managers explicitly.But the
enabledManagersarray does not seem to be mergeable. So when using multiple presets, I cannot add{ "enabledManagers": ["managerForThisPreset"] }to each preset and get a merged list in the final config.
I also tried having a
default.jsonpreset, that sets{ "enabledManagers": [] }and then setting
{ "managerForThisPreset": { "enabled": true }, }in each other preset.
But in this case all managers get enabled, the
[]forenabledManagersdoes not disable all managers, that are not explicitly enabled.How can I achieve my goal of only enabling selected manages when using presets?
Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions