diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-06-09 01:19:45 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-06-11 18:43:24 +0900 |
commit | a9077af75be7f71e02150343c1172287a4ad05fd (patch) | |
tree | 8e5db50e5dd007b1d7622f504c10963e68585c6c | |
parent | 870e5a39d59d574f92676db17555869fed5d9afb (diff) |
[rubygems/rubygems] No need to overwrite path when there's a remote
https://github.com/rubygems/rubygems/commit/d86fb2c316
-rw-r--r-- | lib/bundler/source/rubygems.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bundler/source/rubygems.rb b/lib/bundler/source/rubygems.rb index 1373e39cca..8ca43efa19 100644 --- a/lib/bundler/source/rubygems.rb +++ b/lib/bundler/source/rubygems.rb @@ -168,6 +168,9 @@ module Bundler Bundler.rm_rf(path) raise end + else + path = cached_gem(spec) + raise GemNotFound, "Could not find #{spec.file_name} for installation" unless path end unless Bundler.settings[:no_install] @@ -175,8 +178,6 @@ module Bundler message += " with native extensions" if spec.extensions.any? Bundler.ui.confirm message - path = cached_gem(spec) - raise GemNotFound, "Could not find #{spec.file_name} for installation" unless path if requires_sudo? install_path = Bundler.tmp(spec.full_name) bin_path = install_path.join("bin") |