Open driskell opened 2 years ago
Related: dependabot/dependabot-core#4030
For my repositories, I've created a Github Actions Workflow that fixes up dependabot PRs with the correct lock file changes https://github.com/gapple/dpbot-merge/blob/main/.github/workflows/dependabot-composer.yml
Hello
We've discovered that dependabot is not aware of the merged requirements or repositories added by composer-merge-plugin. This is intentional as dependabot does not run plugin scripts and likely never will. So in a way the two are not compatible.
Worst still, however, is that Dependabot's composer update will then not know about the requirements and strip them from the resulting lock file. This is intentional. As far as composer is concerned the new updated package meant these packages were no longer needed and so are removed since there is no longer a requirement for them anywhere (scripts didn't run.)
I think the way to resolve this potentially is for merge plugin to actually write the merged repository and requirements to the composer JSON file. Could this be a valid feature request?
It has two advantages:
For now we're doing the merge manually into composer JSON as it gives both benefits.