diff options
author | David RodrÃguez <[email protected]> | 2021-08-21 16:52:48 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2021-08-31 19:06:14 +0900 |
commit | 71b937d3d7f1369a55844201f31720e815d0168c (patch) | |
tree | fc8dc7522170fd429dc4f79615a919a85501dc79 /lib/bundler.rb | |
parent | d0da3a2a7f48fb912d7617f19d18f32cb5d7eb56 (diff) |
[rubygems/rubygems] Normalize setting `GEM_PATH`
https://github.com/rubygems/rubygems/commit/4188ebd568
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4789
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r-- | lib/bundler.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb index 47f1fd248c..52e80c4baf 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -661,12 +661,12 @@ EOF configure_gem_home end - def configure_gem_path(env = ENV) + def configure_gem_path unless use_system_gems? # this needs to be empty string to cause # PathSupport.split_gem_path to only load up the # Bundler --path setting as the GEM_PATH. - env["GEM_PATH"] = "" + Bundler::SharedHelpers.set_env "GEM_PATH", "" end end |