Skip to content

Commit

Permalink
Allow custom vendored Ruby URL (#1406)
Browse files Browse the repository at this point in the history
* Allow custom vendored Ruby URL

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.

Fixes #1164.

* Changelog

* Correct changelog PR URL

---------

Co-authored-by: Schneems <[email protected]>
Co-authored-by: Ed Morley <[email protected]>
  • Loading branch information
3 people authored Dec 6, 2023
1 parent 332aba4 commit 9dc8ea4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Main (unreleased)

- Fix BUILDPACK_VENDOR_URL support (https://github.com/heroku/heroku-buildpack-ruby/pull/1406)

## v262 (2023/11/08)

- Warn when relying on default Node.js or Yarn versions (https://github.com/heroku/heroku-buildpack-ruby/pull/1401)
Expand Down
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 9dc8ea4

Please sign in to comment.