-
-
Notifications
You must be signed in to change notification settings - Fork 412
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
Composer 1 vs 2: Adds extra sites/ directory for Drupal 7 installation #479
Comments
Ok this is in fact a problem in Composer itself and not related to the paths. It's merely triggered by your custom paths because that creates an intersection of two packages being installed in the same directories. In Composer 1 it worked fine because things happened more sequentially, so it installs drupal/drupal first, then puts drupal/ctools in the docroot/sites/all/modules/contrib/... dir and all is well. What happens in Composer 2 due to the parallelisation of installs is something like this:
Anyway should be fixed with latest Composer snapshot, and the next 2.0 release will include the fix. |
Can confirm: I hope 2.0.12 gets released soon. :-) |
It's out now |
Thanks in advance for any effort at all on this. :-)
I use composer-installers to put Drupal stuff where it belongs. See my minimal composer.json below for an example of how this works.
Using Composer 1, this works as expected: Drupal core is placed in docroot/ without any problem.
Using Composer 2, everything works as expected again, except for one extra bit of path is inserted to docroot/sites/sites/. It should only be docroot/sites/.
This doesn't make a lot of sense because the whole package should just be placed within the custom directory. This is the only directory that has any special cases... Other directories within drupal/drupal are not misplaced.
This issue only happens with custom path configurations for both drupal-core and drupal-module. I would expect that if there were a problem, it would be with one overwriting the other, not adding a bonus directory.
composer.json:
The text was updated successfully, but these errors were encountered: