Skip to content

Commit

Permalink
Allow custom vendored Ruby URL
Browse files Browse the repository at this point in the history
Lets us provide our own custom set of vendored Ruby runtimes.

Currently in use on our fork of this repo, but we'd like to merge it upstream.
  • Loading branch information
mlarraz authored Nov 29, 2023
1 parent 332aba4 commit f73e058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/support/download_ruby
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ curl_retry_on_18() {
regex=".*ruby_version = [\'\"]([0-9]+\.[0-9]+\.[0-9]+)[\'\"].*"
if [[ $(cat "$BIN_DIR/../buildpack.toml") =~ $regex ]]
then
heroku_buildpack_ruby_url="https://heroku-buildpack-ruby.s3.us-east-1.amazonaws.com/$STACK/ruby-${BASH_REMATCH[1]}.tgz"
heroku_buildpack_ruby_url="${BUILDPACK_VENDOR_URL:-https://heroku-buildpack-ruby.s3.us-east-1.amazonaws.com}/$STACK/ruby-${BASH_REMATCH[1]}.tgz"
else
echo "Could not detect ruby version to bootstrap"
exit 1
Expand Down

0 comments on commit f73e058

Please sign in to comment.