contao / core-bundle

[READ-ONLY] Contao Core Bundle
GNU Lesser General Public License v3.0
123 stars 58 forks source link

4.6-RC1: extensions compatible with Contao 3 and 4 cannot be installed #1628

Closed fritzmg closed 6 years ago

fritzmg commented 6 years ago

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.

m-vo commented 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:

leofeyer commented 6 years ago

Thanks for reporting this @fritzmg. I also stumbled across it when I updated contao.org to Contao 4.6.

fritzmg commented 6 years ago

@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"

leofeyer commented 6 years ago

Yes, either the core bundle or the manager bundle.

m-vo commented 6 years ago

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).

aschempp commented 6 years ago

Neither does the manager-bundle …

aschempp commented 6 years ago

Version 3.0.9 of the composer-plugin has been released that should fix this problem.

leofeyer commented 6 years ago

Fixed in contao-community-alliance/composer-plugin@2686fb2299fa4fcde1d3a54ec10cd497661d8536 and dbd770536a5c44458118223914d29ed2fd969649.