summaryrefslogtreecommitdiff
path: root/lib/bundler/fetcher
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-01-03 00:42:47 -0600
committerSamuel Giddins <segiddins@segiddins.me>2016-01-25 10:49:51 -0600
commit5b39d8d4af10ea8f30e88305c350a2b78a69e52a (patch)
treeab58861721d56397b20b311e9c4e16f341151c1d /lib/bundler/fetcher
parentbfeccc1f9714f5d290b8ac2ddc2a8aca5e23c939 (diff)
downloadbundler-5b39d8d4af10ea8f30e88305c350a2b78a69e52a.tar.gz
[CompactIndex] Use the cache_uri for the cache path
Diffstat (limited to 'lib/bundler/fetcher')
-rw-r--r--lib/bundler/fetcher/compact_index.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bundler/fetcher/compact_index.rb b/lib/bundler/fetcher/compact_index.rb
index 767a3c565d..d4be8931b4 100644
--- a/lib/bundler/fetcher/compact_index.rb
+++ b/lib/bundler/fetcher/compact_index.rb
@@ -74,10 +74,11 @@ module Bundler
end
def cache_path
- uri_parts = [display_uri.host, display_uri.port, display_uri.path].compact.join(".")
+ cache_uri = remote.cache_uri
+ uri_parts = [cache_uri.host, cache_uri.port, cache_uri.path].compact.join(".")
uri_digest = Digest::MD5.hexdigest(uri_parts)
- cache_path = [display_uri.host, display_uri.port, uri_digest[0..5]].compact.join(".")
+ cache_path = [cache_uri.host, cache_uri.port, uri_digest[0..5]].compact.join(".")
Bundler.user_cache.join("compact_index", cache_path)
end
end