Constraints from packageRules don't override global constraints #34118
Unanswered
eliashaeussler
asked this question in
Request Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How are you running Renovate?
A Mend.io-hosted app
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
No response
Please tell us more about your question or problem
Problem
I have two
constraints
in myrenovate.json
:My expectation is that (at least since #29533) package updates for the
foo/composer.json
andfoo/composer.lock
files use PHP 8.3 whereas all other files likecomposer.json
andcomposer.lock
use PHP 8.1.However, it seems like Renovate uses the global
constraints
object for all package updates.Minimal reproduction repo
Repo: https://github.com/eliashaeussler/renovate-repro-constraints
Example: eliashaeussler/renovate-repro-constraints#3 is a great example where Renovate downgrades packages in
foo/composer.lock
to PHPUnit^10
because PHPUnit^11
is not compatible with PHP 8.1, which is obviously used instead of the configured8.3.*
.Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions