drupal-composer/drupal-project

Composer breaking my Drupal9 installation.

strben opened this issue · 1 comments

Hello all...

I think I posted this in the wrong area. Didn't realize there was a special drupal-composer area.

composer/composer#9597

Basically I am trying to use composer to install "defuse/php-encryption" but composer also tries to install Drupal-Core 9.1.2 even though I already have that installed and working. It is overwriting something I guess because when it completes, my Drupal is broken and I have to restore from backups.

Please see link above.

Thank you!

Hey @strben this issue queue is for issues related to the "name": "drupal-composer/drupal-project" named project. You are using "name": "drupal/legacy-project" which says "Project template for Drupal 9 projects with composer following drupal/drupal layout" in its description. drupal/drupal is deprecated and for drupal/legacy-project it says the following in the official docs:

Use the legacy project layout only if there is some reason why you cannot use the recommended project layout.

However, this is more of a core issue and you might create a support request in the core issue queue or on Drupal Answers. But the very best would actually be you try to refactor your project to either use this (community) or this (core) composer.json file.