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

Created on 7 August 2020, almost 4 years ago
Updated 22 February 2023, over 1 year 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 about 22 hours 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.69.0 2024