Method: Bundler::Source::Git#cache_path
- Defined in:
- lib/bundler/source/git.rb
permalink #cache_path ⇒ Object
This is the path which is going to contain a cache of the git repository. When using the same git repository across different projects, this cache will be shared. When using local git repos, this is set to the local repo.
240 241 242 243 244 245 246 |
# File 'lib/bundler/source/git.rb', line 240 def cache_path @cache_path ||= if Bundler.feature_flag.global_gem_cache? Bundler.user_cache else Bundler.bundle_path.join("cache", "bundler") end.join("git", git_scope) end |