I work with Symfony 5.4, docker env and GitLab.
When I run my pipeline at the command, composer install
I have the following error:
In PluginManager.php line 762:
symfony/thanks contains a Composer plugin which is blocked by your allow-pl
ugins config. You may add it to the list if you consider it safe.
You can run "composer config --no-plugins allow-plugins.symfony/thanks [tru
e|false]" to enable it (true) or disable it explicitly and suppress this ex
ception (false)
See https://getcomposer.org/allow-plugins
I try
composer global config allow-plugins.composer/installers true
composer clearcache
composer self-update
composer update --no-plugins --noscripts
But nothing works and I got the same error ...
CodePudding user response:
You can try to add this config to your composer.json.
"config": {
"allow-plugins": {
"symfony/thanks": true
}
}
CodePudding user response:
don't know if it's the best solution or not, but you can go to your composer global dir and do remove it at all :)
cd ~/.config/composer
composer remove symfony/thanks