From eebbd2b83b676de7ef9201cd41e05bf152911f7b Mon Sep 17 00:00:00 2001 From: David Zuelke Date: Fri, 19 Apr 2024 12:30:12 +0200 Subject: [PATCH] Multi-arch awareness for heroku-24+ in bin/compile Closes #717 GUS-W-15158300 --- bin/compile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/compile b/bin/compile index 5a58698c6..e4d018056 100755 --- a/bin/compile +++ b/bin/compile @@ -226,7 +226,12 @@ mkdir -p $COMPOSER_HOME status "Bootstrapping..." -s3_url="https://lang-php.s3.us-east-1.amazonaws.com/dist-${STACK}-stable/" +if [[ $STACK == heroku-2[02] ]]; then + stack_locator=$STACK +else + stack_locator="${STACK}-$(dpkg --print-architecture)" +fi +s3_url="https://lang-php.s3.us-east-1.amazonaws.com/dist-${stack_locator}-stable/" # prepend the default repo to the list configured by the user # list of repositories to use is in ascening order of precedence export_env_dir "$env_dir" '^HEROKU_PHP_PLATFORM_REPOSITORIES$'