drupal-finder icon indicating copy to clipboard operation
drupal-finder copied to clipboard

Incorrect composer root identified when two composer.json files are present

Open grasmash opened this issue 8 years ago • 3 comments

I have a directory structure like this:

composer.json
docroot
    - composer.json
vendor

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.

grasmash avatar Sep 25 '17 19:09 grasmash

Perhaps it would be sufficient to verify that the vendor directory exists in the composer root?

grasmash avatar Sep 25 '17 20:09 grasmash

The --debug flag helps to identify these issues.

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.

webflo avatar Apr 08 '19 20:04 webflo