This repository has been archived by the owner on Nov 10, 2022. It is now read-only.
Vendor Ruby if an installation is not found #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This buildpack requires that a Ruby installation be available during buildpack compile, in order to install the
parseconfig
gem, and then run theinstall_git_submodules.rb
script.On Heroku-22 the stack image no longer includes a system Ruby installation, so in order for this buildpack to continue to work, a Ruby install must be vendored by this buildpack.
If an app already uses the Ruby buildpack, and that buildpack is ordered prior to the submodules buildpack, then this buildpack will skip the Ruby vendoring step to save downloading a redundant copy of Ruby.
The Ruby installation vendored by this buildpack is not made available to later buildpacks or at runtime, so will otherwise not affect the build.
The implementation is based on that in heroku/heroku-buildpack-nginx#103 (except for that buildpack, Ruby needed to be available at runtime, whereas here it is only needed during the build).
Fixes #7.