From 9ee382d90626d409d69891d00745f0fb4331d143 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Wed, 28 Oct 2020 11:23:42 +0100 Subject: [PATCH] Require Composer v1 wikimedia/composer-merge-plugin is currently not compatible with Composer v2 --- scripts/install | 4 ++-- scripts/upgrade | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index cafd3a3..aaecd9b 100644 --- a/scripts/install +++ b/scripts/install @@ -142,8 +142,8 @@ ynh_store_file_checksum --file="$final_path/config/db.inc.php" ( cd "$final_path" export COMPOSER_HOME=$final_path - curl -sS https://getcomposer.org/installer | php -- --install-dir="$final_path" \ - && php"${phpversion}" composer.phar install --no-interaction --quiet + curl -sS https://getcomposer.org/installer | php -- --version="1.10.16" --install-dir="$final_path" \ + && php"${phpversion}" composer.phar install --no-interaction ) #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 22e8a13..b53ea0e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -148,7 +148,7 @@ chown -R $app $final_path/src/Movim/Bootstrap.php ( cd "$final_path" - curl -sS https://getcomposer.org/installer | php -- --install-dir="$final_path" \ + curl -sS https://getcomposer.org/installer | php -- --version="1.10.16" --install-dir="$final_path" \ && php composer.phar config --global discard-changes true --quiet \ && php composer.phar install --no-interaction --quiet )