diff --git a/Library/Homebrew/utils/gems.rb b/Library/Homebrew/utils/gems.rb index 7ab486e520..46ffca2f79 100644 --- a/Library/Homebrew/utils/gems.rb +++ b/Library/Homebrew/utils/gems.rb @@ -224,7 +224,7 @@ module Homebrew old_path = ENV.fetch("PATH", nil) old_gem_path = ENV.fetch("GEM_PATH", nil) old_gem_home = ENV.fetch("GEM_HOME", nil) - old_bundle_cache_path = ENV.fetch("BUNDLE_CACHE_PATH", nil) + old_bundle_user_cache = ENV.fetch("BUNDLE_USER_CACHE", nil) old_bundle_gemfile = ENV.fetch("BUNDLE_GEMFILE", nil) old_bundle_with = ENV.fetch("BUNDLE_WITH", nil) old_bundle_frozen = ENV.fetch("BUNDLE_FROZEN", nil) @@ -249,7 +249,7 @@ module Homebrew else ENV.fetch("HOMEBREW_CACHE") end - ENV["BUNDLE_CACHE_PATH"] = "#{homebrew_cache}/bundler_cache" + ENV["BUNDLE_USER_CACHE"] = "#{homebrew_cache}/bundler_cache" ENV["BUNDLE_GEMFILE"] = gemfile ENV["BUNDLE_WITH"] = groups.join(" ") ENV["BUNDLE_FROZEN"] = "true" @@ -346,7 +346,7 @@ module Homebrew ENV["BUNDLE_GEMFILE"] = old_bundle_gemfile ENV["BUNDLE_WITH"] = old_bundle_with ENV["BUNDLE_FROZEN"] = old_bundle_frozen - ENV["BUNDLE_CACHE_PATH"] = old_bundle_cache_path + ENV["BUNDLE_USER_CACHE"] = old_bundle_user_cache end end end