Robust way to determine configuration priority #34763
Unanswered
nikfot
asked this question in
Request Help
Replies: 1 comment 6 replies
-
Rules are evaluated in order, and the last applied rule "wins" if more than one rule have conflicting settings. I don't understand why you don't consider such an order of precedence to be non "robust". |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How are you running Renovate?
self-hosted
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
39.107.0
Please tell us more about your question or problem
TL;DR
I have a packageRule with
pinDigests: false
in aconfig base file. When I use it to extend local renovate config along withconfig:best-practices
, then best practices can shadow thepinDigests: false
Description
In my
base.json
I have something similar to this in rules:I was supposing that if the scope is more specific it would take precedence. So in this case I would expect that if I include both matchDatasource and matchPackageNames it would be skip pinning digests and not apply the
docker:pinDigests
that is included in the best practices.I can move forward by changing the order of best-practices and base.
So instead of doing this:
I can do this:
But it looks a bit error prone so I would like to know if there is a more robust way to do it.
Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions