Problem/Motivation
Drupal 8.3.0 has update issues with drush versions prior to 8.1.10. See #2867444: Configuration schema errors whilst updating to 8.3.0.
Proposed resolution
Declare the conflict in core/composer.json so anyone who has installed drush via composer and has an earlier version knows they need to update it. This will not effect globally installed drush only composer installed drush and composer-based projects.
With the patch applied:
composer require drush/drush "8.1.9"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for drupal/drupal dev-drush-conflict -> satisfiable by drupal/drupal[dev-drush-conflict].
- drush/drush 8.1.9 conflicts with drupal/drupal[dev-drush-conflict].
- Installation request for drush/drush 8.1.9 -> satisfiable by drush/drush[8.1.9].
Both composer require drush/drush "8.1.10"
and composer require drush/drush:dev-master
work just fine.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | 2867570-2.patch | 408 bytes | alexpott |
Comments
Comment #2
alexpottComment #3
moshe weitzman CreditAttribution: moshe weitzman commentedGood call.
Thanks for posting that composer conflict example. Composer conflicts need so much usability help. Its worse than MySQL EXPLAIN! How hard can it be? "drush/drush 8.1.9 conflicts with drupal/drupal. Try drush/drush:8.1.10 and you'll be happy dappy."
Comment #4
catchWasn't clear if Moshe manually tested it, but I just did and got the same error that @alexpott pasted. This makes sense to me so committed/pushed to 8.4.x and cherry-picked to 8.3.x, thanks!