Feature: Allow composer/installers
(and other dependencies needing allow-plugins
) when installing Composer libraries
#908
Labels
enhancement
New feature or request
Describe the feature
Right now,
shivammathur/setup-php
correctly sets upallow-plugins
for Composer libraries that are installed directly via thetools
option. However, if one of those tools has a dependency that itself needsallow-plugins
—for example,composer/installers
—it isn’t automatically allow-listed by the action. That leads to Composer blocking the plugin installation, causing errors such as:It would be very helpful if
shivammathur/setup-php
could either automatically allowcomposer/installers
whenever installing any Composer tool or detect sub-dependencies that needallow-plugins
and handle them accordingly.Please check the latest release
v2
.Underlying issue
composer/installers
is blocked by the defaultallow-plugins
config. Ifshivammathur/setup-php
installs a Composer library that depends oncomposer/installers
, the dependency is blocked by Composer’s stricter plugin policy, causing errors in CI.Describe alternatives
composer global config --no-plugins allow-plugins.composer/installers true
in every workflow.composer/installers
in thetools
options.Both approaches work but negate the convenience of the action automatically handling this.
Additional context
Are you willing to submit a PR?
Yes (Depending on which approach you prefer, if any, I can potentially submit a PR, although I haven't looked into your test logic yet.)
The text was updated successfully, but these errors were encountered: