Skip to content

feat: allow customizing $PATH during rb_bundle_fetch #91

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

Merged
merged 3 commits into from
Mar 2, 2024

Conversation

sushain97
Copy link
Collaborator

Right now, we're overwriting $PATH regardless of what the user specifies in env. With this change, we use the user's provided value in addition to adding our own entry.

This is necessary for some gems that depend on system binaries. For example, the pg gem depends on pg_config binary.

Bazel already adds some standard directories like /usr/local/bin to $PATH. But, that isn't sufficient on recent versions of MacOS because Homebrew stores packages elsewhere (see bazelbuild/bazel#12049).

This change allows users who are comfortable with not fully hermetic bundle builds to opt into it by tweaking $PATH.

@sushain97 sushain97 requested a review from p0deje March 2, 2024 07:03
@sushain97 sushain97 changed the title feat: allow customizing $PATH during `rb_bundle_fetch feat: allow customizing $PATH during rb_bundle_fetch Mar 2, 2024
@p0deje p0deje merged commit d348698 into main Mar 2, 2024
@p0deje p0deje deleted the allow-env-customization branch March 2, 2024 15:08
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.

2 participants