There is a plan to remove core dependencies from composer.json. Here we can read in the "Remaining tasks" section:
Search for modules that require core modules in their composer.json. Most probably we want to file patches against those where we remove the require, and move those to the dependencies: section of their info.yml file.
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"?
In Drupal 9.4.4 the replace section of
composer.json
ofdrupal/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#L18When we run
composer require drupal/drupal-driver
, we end up with duplicateddrupal/core-utility
in the vendor folder! It overrides the core package inweb/core/lib/Drupal/Component/Utility
and may even have a different version.Should we avoid the composer require of "drupal/core-utility"?