Problem/Motivation
The upcoming version 2.2.0 of composer asking to configure allowed plugins for drupal/drupal
web $ composer i -o
composer/installers contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins
Do you trust "composer/installers" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] y
drupal/core-project-message contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins
Do you trust "drupal/core-project-message" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] y
drupal/core-vendor-hardening contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins
Do you trust "drupal/core-vendor-hardening" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] y
> Drupal\Composer\Composer::ensureComposerVersionAlso it needs to check compatibility for core provided plugins
Steps to reproduce
get core from git and use composer self-update --preview && composer install -o
Proposed resolution
- fix list of of allowed plugins
- check compatibility for core's plugins
Remaining tasks
patch/review/commit
- may use change record or release notes
User interface changes
no
API changes
no
Data model changes
no
Release notes snippet
Added compatibility with Composer 2.2
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 3253683-D10-9.patch | 447 bytes | spokje |
| #6 | 3253683-2.patch | 447 bytes | andypost |
Comments
Comment #2
andypostpatch for allowed plugins
Comment #3
andypostcomposer updates and plugin-api already using
^1 || ^2Comment #4
gábor hojtsyI think the patch in #2 looks useful based on your report, but updating dependencies should not be mixed with it unless those improve composer 2.2 support which is not evident from your comment/patch :D
Comment #5
gábor hojtsyAdding your composer output to the issue summary from chat to make it easier to understand what the extent of the "incompatibility" is.
Comment #6
andypostFiled separate issue #3253943: Update dependencies for 9.4.x
re-uploading patch from #2 as it should go last for rtbc
Comment #7
spokjeRTBC #2 patch, which only adds an
"allow-plugins"section to the rootcomposer.json.In it are the three plug-ins that need to be allowed, as described in the IS.
With composer < 2.2 this section is merrily ignored, so no harm will be done upon adding this section IMHO.
Comment #8
catchThis needs a 10.0.x-specific patch.
Comment #9
spokjeComment #10
spokjeComment #11
gábor hojtsyLooks identical to the 9.x patch, thanks.
Comment #12
andypostFiled follow-up #3254149: Remove config.autoloader-suffix from composer.json
it probably makes sense to sort this sections of composer in other follow-up
Comment #13
catchCommitted/pushed to 10.0.x and cherry-picked to 9.4.x and 9.3.x, thanks!
Comment #17
catch