Add allow-plugins config #467

This commit is contained in:
Paul Weidner 2022-01-03 12:06:22 -08:00 committed by Michael Stenta
parent ea09c7774a
commit bef4f25032
1 changed files with 12 additions and 0 deletions

View File

@ -38,6 +38,18 @@ elif [[ ! "${FARMOS_VERSION}" =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9
fi
composer require farmos/farmos ${FARMOS_COMPOSER_VERSION} --no-install
# Add allow-plugins config.
allowedPlugins=(
"composer/installers"
"cweagans/composer-patches"
"drupal/core-composer-scaffold"
"oomphinc/composer-installers-extender"
"wikimedia/composer-merge-plugin"
)
for plugin in ${allowedPlugins[@]}; do
composer config --no-plugins allow-plugins.$plugin true
done
# Run composer install with optional arguments passed into this script.
if [ $# -eq 0 ]; then
composer install