0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

build-support/php: fix environment variables for Composer

This commit is contained in:
Pol Dellaiera 2024-09-23 09:20:42 +02:00
parent 3bcaabbb71
commit 07e6929c81
No known key found for this signature in database
GPG key ID: D476DFE9C67467CA
9 changed files with 17 additions and 32 deletions

View file

@ -13,6 +13,13 @@ setComposeRootVersion() {
set -e
}
setComposeEnvVariables() {
echo -e "\e[32mSetting some required environment variables for Composer...\e[0m"
export COMPOSER_MIRROR_PATH_REPOS=1
export COMPOSER_CACHE_DIR=/dev/null
export COMPOSER_HTACCESS_PROTECT=0
}
checkComposerValidate() {
setComposeRootVersion