composer/composer dependency in drupal/core-composer-scaffold fails to update composer

Created on 7 August 2020, over 4 years ago
Updated 22 February 2023, almost 2 years ago

The new (ish) drupal/core-composer-scaffold plugin seems somewhat problematic:

If a developer runs composer update, and there is an update available for composer, this will fail, because it first removes composer. If the developer includes ./vendor/bin in their environment path for cli execution, which seems a relatively sane thing to do, everything falls over at that point.

Is the hard dependency on composer/composer in /vendor/drupal/core-composer-scaffold/composer.json really essential? My prior experience with composer has indicated that it should be installed globally, not as a per-project dependency. Then composer self-update can (and should) be used to update the package manager itself.

Thoughts?

🐛 Bug report
Status

Closed: works as designed

Version

10.1

Component
Composer 

Last updated 15 days ago

No maintainer
Created by

🇳🇿New Zealand john pitcairn

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024