Fix: install composer via curl pipe in same shell layer

This commit is contained in:
babelbes0487 2026-06-19 16:55:42 +07:00
parent 9219e923a1
commit 63adc61b4c
1 changed files with 1 additions and 4 deletions

View File

@ -16,10 +16,7 @@ nixPkgs = [
[phases.install]
cmds = [
"php -r \"copy('https://getcomposer.org/installer', 'composer-setup.php');\"",
"php composer-setup.php --install-dir=/usr/local/bin --filename=composer",
"php -r \"unlink('composer-setup.php');\"",
"composer install --no-dev --optimize-autoloader --no-interaction",
"curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && composer install --no-dev --optimize-autoloader --no-interaction",
"npm ci"
]