summaryrefslogtreecommitdiff
path: root/lib/bundler/source/git.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/source/git.rb')
-rw-r--r--lib/bundler/source/git.rb15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/bundler/source/git.rb b/lib/bundler/source/git.rb
index ce9ffc9c3b..c66cbb17fb 100644
--- a/lib/bundler/source/git.rb
+++ b/lib/bundler/source/git.rb
@@ -209,8 +209,6 @@ module Bundler
# When using local git repos, this is set to the local repo.
def cache_path
@cache_path ||= begin
- git_scope = "#{base_name}-#{uri_hash}"
-
if Bundler.requires_sudo? || Bundler.feature_flag.global_gem_cache?
Bundler.user_cache
else
@@ -219,11 +217,6 @@ module Bundler
end
end
- def extension_cache_path(spec)
- return unless Bundler.feature_flag.global_gem_cache?
- cache_path.join("extensions", Bundler.ruby_scope, extension_dir_name)
- end
-
def app_cache_dirname
"#{base_name}-#{shortref_for_path(cached_revision || revision)}"
end
@@ -323,6 +316,14 @@ module Bundler
StubSpecification.from_stub(stub)
end
end
+
+ def git_scope
+ "#{base_name}-#{uri_hash}"
+ end
+
+ def extension_cache_slug(_)
+ extension_dir_name
+ end
end
end
end