diff options
author | The Bundler Bot <bot@bundler.io> | 2017-09-13 23:17:24 +0000 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-09-18 13:43:33 -0500 |
commit | b26899bb88fccd8fd68a2a21ee2ccc1b68681b23 (patch) | |
tree | 62f2cfb56de43463d80ec777147d6fcd0bcb5856 /CHANGELOG.md | |
parent | acbe31104bade2729d2616dfac9254ddd63c7c88 (diff) | |
download | bundler-b26899bb88fccd8fd68a2a21ee2ccc1b68681b23.tar.gz |
Auto merge of #6022 - bundler:seg-fix-fetcher-regression, r=colby-swandale
Avoid making unnecessary network requests fetching specs
The problem was installing `source "https://rubygems.org"; gem "rack"` could cause bundler to make requests for _hundreds_ of specs, drastically slowing down installation. This was a regression in 1.16 caused by the new source pinning logic.
My diagnosis was the "double checking" step of creating the definition's index was accidentally saying Bundler needed to download specs for _every gem installed_, along with their dependencies _for every version in existence_.
My fix narrows down the set of names that need to be double-checked for to (a) only those that could possibly be needed for resolution (b) and only those specs that could possibly come from many sources (i.e. are "unpinned")
I chose this fix because it takes that `rack` gemfile back down to __2__ requests: `/versions` and `/info/rack`, as it should be, while maintaining proper searching for back-deps.
(cherry picked from commit c1668a569244145790c627a08aa0f0f4720031ad)
Diffstat (limited to 'CHANGELOG.md')
0 files changed, 0 insertions, 0 deletions