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
This commit is contained in:
Jonas L 2023-04-19 17:15:15 +02:00 committed by GitHub
parent 4bf729679e
commit d9fbb231b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 3 deletions

View File

@ -12,8 +12,16 @@ locale-update:
locale-build: locale-build:
$(MAKE) -C locale clean 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: vendor:
composer install --no-progress --no-interaction $(COMPOSER_ARGS) $(COMPOSER_INSTALL)
.PHONY: test .PHONY: test
test: vendor test: vendor
@ -28,8 +36,8 @@ lint: tools
$(TOOLS)/bin/php-cs-fixer fix --verbose --dry-run --diff $(TOOLS)/bin/php-cs-fixer fix --verbose --dry-run --diff
.PHONY: build .PHONY: build
build: build: locale-build
COMPOSER_ARGS="--no-dev --ignore-platform-reqs" $(MAKE) $(COMPOSER_INSTALL) --no-dev --ignore-platform-reqs
propel-gen: vendor propel-gen: vendor
cd build && \ cd build && \