diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2023-03-16 15:44:51 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-23 17:18:49 +0900 |
commit | 164dc580084b10d46f1c44de5c36d907b0f6a385 (patch) | |
tree | 6bdf5a913061bb977d091bc7ed624af6beb9e0e1 /lib/bundler | |
parent | 069640d3558022913ef164e2b73ef477b8f89a79 (diff) | |
download | ruby-164dc580084b10d46f1c44de5c36d907b0f6a385.tar.gz |
Fix logging the fallback to the full index on GemspecError's
The debug message suggests retrying using `--full-index`, but the retry
is happening automatically. Just log that we are falling back to the
full index, like we do with other errors.
Diffstat (limited to 'lib/bundler')
-rw-r--r-- | lib/bundler/fetcher/dependency.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/bundler/fetcher/dependency.rb b/lib/bundler/fetcher/dependency.rb index 332f86139d..18b606abb6 100644 --- a/lib/bundler/fetcher/dependency.rb +++ b/lib/bundler/fetcher/dependency.rb @@ -34,14 +34,10 @@ module Bundler returned_gems = spec_list.map(&:first).uniq specs(deps_list, full_dependency_list + returned_gems, spec_list + last_spec_list) - rescue MarshalError + rescue MarshalError, HTTPError, GemspecError Bundler.ui.info "" unless Bundler.ui.debug? # new line now that the dots are over Bundler.ui.debug "could not fetch from the dependency API, trying the full index" nil - rescue HTTPError, GemspecError - Bundler.ui.info "" unless Bundler.ui.debug? # new line now that the dots are over - Bundler.ui.debug "could not fetch from the dependency API\nit's suggested to retry using the full index via `bundle install --full-index`" - nil end def dependency_specs(gem_names) |