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

When using a local ruby installation it includes the local LOAD_PATH #44

Closed
grahamjenson opened this issue Dec 17, 2019 · 1 comment
Closed

Comments

@grahamjenson
Copy link
Contributor

The problem is that if the ruby interpreter uses the ruby already installed on the host, and that host is rbenv, rbenv will inject into its own LOAD_PATH which includes its gems folders.

This means that ruby_binary is not hermetic as it may inadvertently depend on gems that are not explicitly declared in the rule.

Not sure how to fix this, maybe use a better script to use the local ruby version, and try work around rbenvs magic (or use rbenvs magic to find the real interpreter path without LOAD_PATH injection)

@kigster
Copy link
Contributor

kigster commented Jan 3, 2020

We don’t have to use rbenv’s shims or wrappers for the ruby binary. It installs rubies in .rbenv/versions/2.6.5/bin/ruby — that would be a pure binary without any rbenv or Rvm magic.

@kigster kigster closed this as completed Feb 29, 2020
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

No branches or pull requests

2 participants