Merge pull request #3781 from MikeMcQuaid/gem-path-home
utils: only look for gems in GEM_HOME.
This commit is contained in:
commit
021fe22e3c
@ -200,6 +200,7 @@ module Homebrew
|
||||
def install_gem_setup_path!(name, version = nil, executable = name)
|
||||
# Match where our bundler gems are.
|
||||
ENV["GEM_HOME"] = "#{ENV["HOMEBREW_LIBRARY"]}/Homebrew/vendor/bundle/ruby/#{RbConfig::CONFIG["ruby_version"]}"
|
||||
ENV["GEM_PATH"] = ENV["GEM_HOME"]
|
||||
|
||||
# Make rubygems notice env changes.
|
||||
Gem.clear_paths
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user