-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
Properly handle gems installed via --user-install #436
Comments
It would mean a new env var (GEM_USER_DIR?), adding and removing it from PATH. I'm not sure it's worth the trouble and it seems nobody cared so far, so probably this flag is almost never used. I detailed that a bit more in #431 (comment) There is also the IMHO significant issue that supporting Considering that, and that I think no user asked for this in such a long time, I would prefer to not support |
Since Gem.user_dir is derived from I am leaning more towards supporting both the per-ruby (i.e. ruby-2.6.1) |
Yeah, it's true the risk should be limited to people using |
There is also a non-trivial interaction with |
Actually, that's more complicated than I thought, even GEM_HOME/GEM_PATH don't change the
Which makes me think |
@eregon Good call on pulling out the value of |
Hmm I might push this back to post-1.0. Since chruby currently uses |
That makes sense to me, indeed chruby gems could mix with I think |
When a user installs a gem with
gem install --user-install
it installs the gem into the Gem.user_dir path (ex:~/.gem/$RUBY_ENGINE/$RUBY_API_VERSION
). chruby should probably support the "user installation directory", in order to prevent--user-install
ed gems from simply disappearing.Simplest way to support
--user-install
is to add/remote the "user installation directory" to both$GEM_PATH
and$PATH
, in addition to the rubygems "gem root".The text was updated successfully, but these errors were encountered: