Skip to content

Commit

Permalink
[rubygems/rubygems] Move Bundler.rubygems.clear_paths to a better p…
Browse files Browse the repository at this point in the history
…lace

Since it clears both home and path.

rubygems/rubygems@fadf5e03ea
  • Loading branch information
deivid-rodriguez authored and hsbt committed Aug 31, 2021
1 parent 8c79486 commit c044f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundler.rb
Expand Up @@ -659,6 +659,7 @@ def eval_gemspec(path, contents)
def configure_gem_home_and_path
configure_gem_path
configure_gem_home
Bundler.rubygems.clear_paths
end

def configure_gem_path
Expand All @@ -672,7 +673,6 @@ def configure_gem_path

def configure_gem_home
Bundler::SharedHelpers.set_env "GEM_HOME", bundle_path.to_s
Bundler.rubygems.clear_paths
end

def tmp_home_path
Expand Down

0 comments on commit c044f81

Please sign in to comment.