jhedstrom / DrupalDriver

A collection of drivers for controlling Drupal.
GNU General Public License v2.0
64 stars 95 forks source link

Avoid the composer require of core "drupal/core-utility" #249

Open dxvargas opened 2 years ago

dxvargas commented 2 years ago

In Drupal 9.4.4 the replace section of composer.json of drupal/core has been removed. See here https://www.drupal.org/node/3295096.

There is a plan to remove core dependencies from composer.json. Here we can read in the "Remaining tasks" section:

What about here in drupal-driver? It's requiring drupal/core-utility https://github.com/jhedstrom/DrupalDriver/blob/v2.2.0/composer.json#L18

When we run composer require drupal/drupal-driver, we end up with duplicated drupal/core-utility in the vendor folder! It overrides the core package in web/core/lib/Drupal/Component/Utility and may even have a different version.

Should we avoid the composer require of "drupal/core-utility"?

fgm commented 2 years ago

See also https://www.drupal.org/project/drupal/issues/3116405#comment-14635486