Should this transistive composer dependency updated at all? #29081
Replies: 2 comments
-
I just noticed renovate is running using php 8.3, and my composer.json do allow 8.3. And by running the following command on a php 8.3 it's reproducable:
Well, how can I optimize my renovate.json? Is it possible to run Renovate with a given php version? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes I can. https://docs.renovatebot.com/configuration-options/#constraints |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What would you like help with?
I think I found a bug
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.
Gitlab, Renovate v37.281.4
Please tell us more about your question or problem
Hey,
I'm using Renovate to update my projects composer dependencies which works great most of the time. But sometimes it fails to upgrade a dependency, because it tries to upgrade a transitive dependency (not directly required by my composer.json file) which isn't even compatible with my required php version and therefor breaks.
Renovate upgrades
doctrine/doctrine-migrations-bundle
and in the same commit also upgradessymfony/var-exporter
to v7.0.7 which is a transitive package ofdoctrine/migrations
(needed bydoctrine/doctrine-migrations-bundle
).While I do not explicitly require
symfony/var-exporter
I don't understand why it gets updated at all.I understand that Renovate might not be able to respect the Symfony/Flex's
extra.symfony.version
(a composer plugin which pins Symfony versions to a specific range (dependabot doesn't, too dependabot/dependabot-core#4631)) at the moment (I can live with that), I do not understand why it upgrades this package which is clearly out of php's range. Why does installingsymfony/var-exporter
in v7.0.7 (which requires php 8.2; disallowed by my composer.json's configuration) happen here?By using
composer update doctrine/doctrine-migrations-bundle -W
I'm not even able to reproduce this behavior. Any ideas what I'm missing?Changeset created by renovate (truncated):
My renovate.json
My composer.json
I really ❤️ renovate as it takes away maintaining effort from me. Please keep working on this great product!
Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions