From 2d0df90ac60609d7d784cee1c18c4f91c0bef90a Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 21 Apr 2022 10:34:19 +1200 Subject: [PATCH] FIX Use composer update for prefer-lowest --- config/base.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/base.yml b/config/base.yml index 749e821..5f93e9e 100644 --- a/config/base.yml +++ b/config/base.yml @@ -127,7 +127,9 @@ before_script: - if [[ $(composer validate 2>&1 | tr '\n' ' ') =~ ' is valid' ]]; then cat composer.json; fi # Install with --prefer-source to ensure that admin javascript (which has export-ignore in .gitattributes) is installed so that NPM_TEST works properly - - composer install --prefer-source --no-interaction --no-progress --optimize-autoloader --verbose --profile $COMPOSER_INSTALL_ARG + # $COMPOSER_INSTALL_ARG is sometimes --prefer-lowest which is only supported by `composer update`, not `composer install` + # Modules do not have composer.lock files, so `composer update` is the same speed as `composer install` + - composer update --prefer-source --no-interaction --no-progress --optimize-autoloader --verbose --profile $COMPOSER_INSTALL_ARG - composer show # Remove vendor unit tests files that were installed because of the use of --prefer-source