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
  • Loading branch information
dzuelke committed May 30, 2024
1 parent e2a348b commit eebbd2b
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 eebbd2b

Please sign in to comment.