utils: only look for gems in GEM_HOME.
This avoids issues where a gem is installed but cannot be found. Fixes #3355. Fixes #3760.
This commit is contained in:
parent
b4443e1cc0
commit
99dda758c4
@ -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