aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2018-02-09 21:09:18 +0000
committerMike McQuaid2018-02-09 21:09:18 +0000
commit99dda758c40a83149300af80131a0078a2858552 (patch)
treeb02d4d9417b4d8a02e4346865eb9c77cdc2e8351
parentb4443e1cc0b41d2b25ca15b87c3d4cb2ab65837f (diff)
downloadbrew-99dda758c40a83149300af80131a0078a2858552.tar.bz2
utils: only look for gems in GEM_HOME.
This avoids issues where a gem is installed but cannot be found. Fixes #3355. Fixes #3760.
-rw-r--r--Library/Homebrew/utils.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 989f05b45..03924dcef 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -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