mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
Add an error msg to clearly explain that plugins are disabled when running as root non-interactively, fixes #11093
This commit is contained in:
parent
acddc1f5e4
commit
bc93f734bc
1 changed files with 1 additions and 0 deletions
|
@ -286,6 +286,7 @@ class Application extends BaseApplication
|
|||
}
|
||||
|
||||
if ($isNonAllowedRoot && !$io->isInteractive()) {
|
||||
$io->writeError('<error>Composer plugins have been disabled for safety in this non-interactive session. Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user.</error>');
|
||||
$this->disablePluginsByDefault = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue