-
Notifications
You must be signed in to change notification settings - Fork 27
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
Add exception for missing composer.json file/document need for composer.json file #36
Comments
also throw for unparseable json. |
+1 I happened to have a comma where there shouldn't be one. It took me several hours before I noticed after having reinstalled drush, drush-laucher and drupal-vm. |
+1 |
+1 for this. I deployed a build artifact and obviously saw no need to include the composer.json. This makes drush not work since DrupalFinder requires a composer.json. |
Yup this definitely makes sense and adds important debug information. |
A project I worked on removed the composer.json as a security precaution, which in turn broke Drush. It turns out that this is because it uses
drupal-finder
to ascertain the Drupal root, which usescomposer.json
to figure that out. It would be handy to throw a specific exception for this instance, and to document it somewhere.The text was updated successfully, but these errors were encountered: