drush-ops / drush-launcher

A small wrapper around Drush for your global $PATH.
GNU General Public License v2.0
237 stars 50 forks source link

drush-launcher suddenly doesn't work anymore after 0.8.0 upgrade #87

Closed Schnitzel closed 3 years ago

Schnitzel commented 3 years ago

if you have issues after upgrading drush-launcher to 0.8.0 and it doesn't work correctly anymore and you are running a composer based drupal with the composer.json outside the docroot, check your composer.json for the name in the json file. If it's drupal/drupal change it to something else (like myproject/drupal) and your drush-launcher will work again

background: drush-launcher uses drupal-finder and if it finds a composer.json that has as "name": "drupal/drupal" set, it assumes that the drupal root is in the same place as the composer.json

for more background: https://github.com/uselagoon/lagoon-images/issues/54

Schnitzel commented 3 years ago

closing again, just leaving here for the future