From 6575b0b92cd709d61657ebc33a33ad7e76f4a1c1 Mon Sep 17 00:00:00 2001 From: Andy Postnikov Date: Sun, 25 Oct 2020 02:59:55 +0300 Subject: [PATCH] Use composer 2 as default To switch versions use: - `ln -fs composer2 /usr/bin/composer` - `ln -fs composer1 /usr/bin/composer` --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 14f4a357a..bf3b94534 100644 --- a/Makefile +++ b/Makefile @@ -77,12 +77,12 @@ endif # Install newrelic PHP extension if NEW_RELIC_LICENSE_KEY defined make -s newrelic $(call php-0, kill -USR2 1) - $(call php, composer global require -o --update-no-dev --no-suggest "hirak/prestissimo:^0.3") ## Install backend dependencies back: docker-compose up -d --remove-orphans --no-deps php # PHP container is required for composer - $(call php, composer global require -o --update-no-dev --no-suggest "hirak/prestissimo:^0.3") + # Set composer2 as default + $(call php-0, ln -fs composer2 /usr/bin/composer) ifneq ($(strip $(ADD_PHP_EXT)),) # Install additional php extensions as this goal used in CI (todo stop doing it) $(call php-0, apk add --no-cache $(ADD_PHP_EXT))