-
-
Notifications
You must be signed in to change notification settings - Fork 557
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
Upgrading to rc23 requires downgrading doctrine/collections #3365
Comments
@cburschka we detected doctrine/collections 1.4.0 1.3.0 Since latest stable release if Drupal 8 still requires That is the reason we decided to switch back to |
Sorry if I'm not understanding composer dependencies right, but wouldn't it be better to lock it to 1.3.0 in composer.lock, while leaving the requirement itself as ^1.3 to leave maximum flexibility? As it is, DC would be incompatible with any other package that requires 1.4, regardless of your PHP version. DC itself works fine with 5.6||7.0 after all, and therefore I don't think it should force all of its dependencies to be compatible with 5.5.9. Leaving the requirements open, and locking it at the older version, should allow composer to resolve it to the correct version for your system. |
I also think this is causing an odd behavior, if you run
|
Indeed, it seems that composer is as likely to downgrade drupal/console as to downgrade doctrine/collections here - it's not really built for a scenario where a new version of A depends on an older version of B than it used to. Until this is fixed, most installations will either get weird updating behavior, or be stuck at rc22 if they don't use |
The way I sorted this is by forcing console to go >= rc23:
But this will affect a lot of users, specially those using https://github.com/drupal-composer/drupal-project This at least sorts the odd issue. Also, without doing that, other composer updates were failing too. |
Console should specify its minimum requirement ( If a project needs to ensure that dependencies are resolved against a particular version of PHP, then there is the When developing, if you need to make sure you're not breaking compatibility with PHP 5.5, you can use |
In #3272 (rc17), the version requirement for doctrine/collections was relaxed in order to allow using doctrine/collections 1.4.0. Then in #3362 (rc23), this was reverted to force 1.3.x again.
Given that between rc17-rc22, Drupal Console has been working fine with 1.4, I'm somewhat confused that in rc23 it was apparently necessary to downgrade back, even though 1.4 should be fully backward-compatible.
Is there a specific bug that required this? The two packages seem to work fine when installed without composer, but I haven't tested it much.
The text was updated successfully, but these errors were encountered: