Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to migrate layer names and change ruby to binruby #382

Closed
wants to merge 9 commits into from

Conversation

schneems
Copy link
Contributor

@schneems schneems commented Jan 8, 2025

Issue #380 showed that the system ruby binaries are being loaded in front of the user installed gems which is causing problems.

This PR introduces a new method cached_layer_rename and a new struct LayerRename which allows a buildpack author to retain the contents of a prior layer. This functionality is then used to rename ruby to binruby which causes it to alphabetically come before gems which means that env vars from gems will be be applied last (take precedence).

Commits are small and mostly in order.

@schneems schneems marked this pull request as ready for review January 8, 2025 20:09
@schneems schneems requested a review from a team as a code owner January 8, 2025 20:09
Using `-a` also shows that there's more than one value present.
@schneems schneems closed this Jan 9, 2025
@edmorley edmorley removed the request for review from a team March 25, 2025 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant