Closed fritzmg closed 6 years ago
Unfortunately that's the typical issue if a requirement has been forgotten and was later fixed. :worried: I think the only way to work around this is to add a conflict in a parent bundle. Extensions could stop requiring the 2.* version or the Contao core could add a conflict. Or users must explicitly define conflicts on the application level.
I remember we had the same discussion with Contao's own bundles which led to the way they are now referenced and released synchronously.
Perhaps we should add a ConvenientConflicts
package that is required as dev-master
in the managed edition by default and handle all those things in there. :smile:
Thanks for reporting this @fritzmg. I also stumbled across it when I updated contao.org to Contao 4.6.
@m-vo well in this case it's easily fixed with a new release for the composer-plugin: https://github.com/contao-community-alliance/composer-plugin/pull/77
However, may be the core-bundle should add a conflict for contao-community-alliance/composer-plugin:<3.0"
Yes, either the core bundle or the manager bundle.
Probably even better in the manager bundle, then? Because the core never really had anything to do with the cca composer plugin (e.g. if used in a standalone Symfony application).
Neither does the manager-bundle …
Version 3.0.9 of the composer-plugin has been released that should fix this problem.
Fixed in contao-community-alliance/composer-plugin@2686fb2299fa4fcde1d3a54ec10cd497661d8536 and dbd770536a5c44458118223914d29ed2fd969649.
See https://github.com/contao-community-alliance/composer-plugin/issues/76
I created this ticket to just keep track of the issue in the compser-plugin in this repository too. Contao 4.6 probably should not be released until this is dealt with, otherwise a lot of people might run into this problem.