Skip to content

Commit

Permalink
Multi-arch awareness for heroku-24+ in bin/compile
Browse files Browse the repository at this point in the history
Closes heroku#717

GUS-W-15158300
  • Loading branch information
dzuelke authored and robinwo committed Sep 13, 2024
1 parent 98747fd commit 4a0dd09
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -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$'
Expand Down

0 comments on commit 4a0dd09

Please sign in to comment.