You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps it would be sufficient to verify that the vendor directory exists in the composer root?
grasmash
changed the title
Incorrect composer root identified went to composer.json files are present
Incorrect composer root identified when two composer.json files are present
Oct 21, 2017
A check for the vendor folder may point people in the wrong direction. E.g. running composer install in the docroot is not the proper solution for this kind of problem. The composer.json is docroot should be removed.
I was encountering the same fault (where I have a fully formed composer.json in one of my modules folders that includes install-paths for drupal/core) and with the latest release the flaw appears to have gone away.
I do not directly use drupal-finder. I encountered this through mglaman/phpstan-drupal's need to find the root folder.
I have a directory structure like this:
When I am working in the docroot directory, Drupal finder incorrectly identifies the docroot as the composer root.
I believe that this is a valid use case.
The text was updated successfully, but these errors were encountered: