Problem/Motivation
While Drush 8.1.12 and higher allow upgrading a Drupal 8.3 site to 8.4 when Drush is installed globally, it turns out that Drush 8.1.14 and earlier are not compatible with 8.4 when they are part of the same composer project, because of the Symfony 2 vs. Symfony 3 dependency conflict.
https://github.com/drush-ops/drush/pull/2800 addressed this by making Drush 8 also work with Symfony 3, which required both loosening the composer requirements and other fixes to Drush itself. The fix is available in Drush 8.1.15.
Proposed resolution
Indicate a conflict with Drush versions lower than 8.1.15 in the composer.json to ensure that sites being updated by Composer get the correct version, since broken Drush installs introduce all kinds of fatals and may prevent DB updates from running, etc. (We have precedent for this from #2867570: Drupal 8.3.0 is not compatible with Drush <8.1.10 - lets declare that in composer.json.)
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | drush-conflict-2916204-1.patch | 354 bytes | xjm |
Comments
Comment #2
xjmComment #3
chi commentedWe might need to update release notes as well.
https://www.drupal.org/project/drupal/releases/8.4.0
Comment #4
borisson_Patch does what the issue describes, this is really helpful!
Comment #5
xjmI updated the release notes already a few days back around when I posted the patch. :) Thanks!
Comment #14
longwaveThis is quite an old issue and Drush 8.3.3 and below can no longer be installed anyway due to version conflicts.
Closing this in favour of #3125974: Add a conflict on drush 9 (allow 8 and 10) which has more discussion about bumping the Drush conflicts.