-
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
Problem detecting DrupalRoot on Drupal 8.7 #46
Comments
Did you specify a name property in your composer.json? |
yes, the snippet is just part of the entire composer.json file All was working last week, a few days before the latest release of drupal-finder |
Check if your main project
I had an old project I inherited that must have been initially modelled on the drupal composer.json. The update on Aug 2 added logic that looks for I'm guessing this was webflo's hunch... |
Something to note, this problem didn't occur for me when the entry point was Drush launcher. It only occured when i was explicitly doing like |
^^ @simesy correct, I was not using drush launcher when I encountered the problem. It was working before the latest release however. |
@Etroid you haven't verified what that value of "name" is in your composer.json. |
@simesy, name is |
Same issue here, using the lightning distribution. Except the composer.json isn't in the docroot, but one directory outside of it for security reasons. |
@Techwolf12 yeah that is pretty standard, drupal-finder is designed start in the docroot and look up a directory for the composer file.
I would change it. I've never seen negative consequences of changing it. I usually change it to |
Or remove it, there's no need for a |
DrupalFinder is unable to detect drupalRoot is
/web
when using drupal core 8.7 - usingwikimedia/composer-merge-plugin
. Instead, it thinks the drupalRoot is/
.This issue occurs when running any
drush
ordrupal
command.From what I gather this is because of a recent change to support Drupal core 8.8 (i.e. https://www.drupal.org/project/drupal/issues/2912387#comment-13188592)
The text was updated successfully, but these errors were encountered: