Use --global when allowing Composer plugins for CORE

this keeps allowances out of the local `composer.json` file and
therefore keeps the working folder clean
This commit is contained in:
Lance Edgar 2023-02-19 12:40:00 -06:00
parent 20a3871522
commit 2097136844

View file

@ -63,11 +63,11 @@ def install_corepos(c, rootdir, rooturl_office, production=True,
# composer install
# TODO: these 'allow' entries are needed for composer 2.4 at least...
c.sudo("bash -c 'cd {} && {} config --no-plugins allow-plugins.composer/installers true'".format(is4c, composer),
c.sudo("bash -c 'cd {} && {} config --global --no-plugins allow-plugins.composer/installers true'".format(is4c, composer),
user=user)
c.sudo("bash -c 'cd {} && {} config --no-plugins allow-plugins.oomphinc/composer-installers-extender true'".format(is4c, composer),
c.sudo("bash -c 'cd {} && {} config --global --no-plugins allow-plugins.oomphinc/composer-installers-extender true'".format(is4c, composer),
user=user)
c.sudo("bash -c 'cd {} && {} config --no-plugins allow-plugins.corepos/composer-installer true'".format(is4c, composer),
c.sudo("bash -c 'cd {} && {} config --global --no-plugins allow-plugins.corepos/composer-installer true'".format(is4c, composer),
user=user)
c.sudo("bash -c 'cd {} && {} install'".format(is4c, composer),
user=user)