New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Composer 2.2 breaks updates in monorepos with certain dependency structures #13371
Comments
Amended with manual fixup for renovatebot/renovate#13371
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com>
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
* Update dependency yoast/phpunit-polyfills to v1.0.3 Amended with manual fixup for renovatebot/renovate#13371 * Add change files Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: matticbot <matticbot@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1654828381
What logic do you think Renovate could implement or do differently? And is this caused by grouping rules you added or because the same dependency is updated in two subfolders? |
Hmm. Poking at this again, I've convinced myself there really is a composer bug here too as it happens even if no updates are being done. I filed that as composer/composer#10431. But I'm not entirely sure that when they fix it that it won't still leave a problem here.
The problem (theoretically if they fix composer/composer#10431 in the most minimal manner) is that the changes to On the other hand, they might decide to go back to fully "unlocking" all path repo sourced packages, in which case this problem would go away.
You'd probably have to look at the path repos declared in composer.json to detect other packages that are being sourced from within the monorepo, and include any that are direct dependencies in the Or maybe there's a composer command to list out dependencies that are sourced from the monorepo? |
So good news, it looks like the fix in composer/composer#10431 will indeed probably make this issue go away without changes to renovate! I suppose we'll have to wait for Composer to release a version 2.2.4 to fully test that though. |
I see they released 2.2.4. Test repo no longer has a problem! |
How are you running Renovate?
WhiteSource Renovate hosted app on github.com
If you're self-hosting Renovate, tell us what version of Renovate you run.
No response
Please select which platform you are using if self-hosting.
No response
If you're self-hosting Renovate, tell us what version of the platform you run.
No response
Describe the bug
Consider a monorepo where package C depends on B which depends on A, and C has composer.lock committed. If renovate is attempting an update in both C and at least one of A or B, composer 2.2 will choke because it was told to update only the dependency and not the monorepo packages.
This worked with composer 2.1 and earlier as those versions would update path deps in this situation.
git bisect
indicates that it was changed by composer/composer#10157.Minimal reproduction repository: https://github.com/anomiex/renovate-test/
Renovate reports failure at anomiex/renovate-test#7 (comment)
If you happen to decide this is at root a bug in composer rather than renovate, I ask you to please file it with them as I expect you'll make a better case for them changing behavior here than I would. I wouldn't know how to respond if they say "just do
composer update composer/semver monorepo/a monorepo/b --with-dependencies
instead", as that does indeed work.Relevant debug logs
Logs
Have you created a minimal reproduction repository?
I have linked to a minimal reproduction repository in the bug description
The text was updated successfully, but these errors were encountered: