From d9fbb231b623ef8b222dd7ed24c5a7f66771fb19 Mon Sep 17 00:00:00 2001 From: Jonas L Date: Wed, 19 Apr 2023 17:15:15 +0200 Subject: [PATCH] fix(legacy): remove composer superuser warning (#2515) - Disable plugins or script when running composer - Export COMPOSER_ALLOW_SUPERUSER=true to suppress the warning - Simplify makefile to build legacy files --- legacy/Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/legacy/Makefile b/legacy/Makefile index 189c9f371..868c09737 100644 --- a/legacy/Makefile +++ b/legacy/Makefile @@ -12,8 +12,16 @@ locale-update: locale-build: $(MAKE) -C locale clean build +export COMPOSER_ALLOW_SUPERUSER = true +COMPOSER_INSTALL = composer install \ + --no-interaction \ + --no-progress \ + --no-plugins \ + --no-scripts \ + --optimize-autoloader + vendor: - composer install --no-progress --no-interaction $(COMPOSER_ARGS) + $(COMPOSER_INSTALL) .PHONY: test test: vendor @@ -28,8 +36,8 @@ lint: tools $(TOOLS)/bin/php-cs-fixer fix --verbose --dry-run --diff .PHONY: build -build: - COMPOSER_ARGS="--no-dev --ignore-platform-reqs" $(MAKE) +build: locale-build + $(COMPOSER_INSTALL) --no-dev --ignore-platform-reqs propel-gen: vendor cd build && \