From c79c39a2b7a4c9b47d18395225d30787a6049bf5 Mon Sep 17 00:00:00 2001 From: Sebastien Mennetrier Date: Mon, 9 Nov 2020 10:57:01 +0100 Subject: [PATCH] Force to use composer version 1.10.17 Composer 2.x is breaking installation of roundcube plugins Waiting updates of plugins, we must use composer verison 1.x --- scripts/_common.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 16d78b9..ff19202 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -7,6 +7,9 @@ # Package dependencies pkg_dependencies="php-cli php-common php-intl php-json php-pear php-auth-sasl php-mail-mime php-patchwork-utf8 php-net-smtp php-net-socket php-zip php-gd php-mbstring php-curl" +# Composer version +composer_version=1.10.17 + # Plugins version contextmenu_version=2.3 automatic_addressbook_version=v0.4.3 @@ -55,7 +58,7 @@ ynh_install_composer () { curl -sS https://getcomposer.org/installer \ | COMPOSER_HOME="$workdir/.composer" \ - php${phpversion} -- --quiet --install-dir="$workdir" \ + php${phpversion} -- --quiet --install-dir="$workdir" --version="$composer_version" \ || ynh_die "Unable to install Composer." # update dependencies to create composer.lock