ruby/lib/bundler
David Rodríguez c1fb25f6fc
[rubygems/rubygems] Don't run any git commands when sorting and comparing git sources
Previously, when sorting and comparing git Gemfile vs lockfile sources during
`bundler/setup` to figure out whether we need to re-resolve or not, we
would try to find the default branch if nothing more specific was
specified in the Gemfile.

If the git cache has been deleted thought, that would fail.

The error would still be swallowed (and the branch would simply not be
displayed), but trying to clone would still generate the side effect of
creating the parent folder for the clone.

That could affect non-writable systems that don't expect `bundler/setup`
to write to the filesystem at all.

To fix this, override `Bundler::Source::Git#identifier` to use
exclusively static information, so it does not even try to clone the
repo nor generate any side effects.

https://github.com/rubygems/rubygems/commit/582eb2ef39
2023-07-13 11:36:03 +09:00
..
cli [rubygems/rubygems] Update GitHub organization of Standard Ruby 2023-07-12 12:29:29 +00:00
compact_index_client
fetcher [rubygems/rubygems] Auto-correct Performance/FlatMap 2023-06-16 04:10:38 +00:00
installer [rubygems/rubygems] Enabled Style/RedundantReturn cop 2023-03-23 17:18:49 +09:00
man [rubygems/rubygems] Introduce bundle config set version feature 2023-07-13 11:36:03 +09:00
plugin [rubygems/rubygems] Fix installing plugins in frozen mode 2023-03-28 15:25:42 +09:00
resolver [rubygems/rubygems] Fix resolver hangs when dealing with an incomplete lockfile 2023-04-06 13:07:16 +09:00
settings
source [rubygems/rubygems] Don't run any git commands when sorting and comparing git sources 2023-07-13 11:36:03 +09:00
templates [rubygems/rubygems] Update GitHub organization of Standard Ruby 2023-07-12 12:29:29 +00:00
ui Merge RubyGems/Bundler master 2022-12-26 15:09:21 +09:00
vendor [rubygems/rubygems] Bump vendored net-http-persistent to 4.0.2 2023-06-30 22:11:58 +00:00
.document
build_metadata.rb
bundler.gemspec
capistrano.rb
cli.rb [rubygems/rubygems] Applied Layout/SpaceAroundOperators cop 2023-03-16 01:59:12 +00:00
compact_index_client.rb
constants.rb [rubygems/rubygems] Use `File::NULL` instead of hard coded null device names 2023-07-10 12:11:12 +00:00
current_ruby.rb [rubygems/rubygems] Update current_ruby.rb 2023-03-03 09:50:30 +00:00
definition.rb [rubygems/rubygems] When printing frozen errors, print only Gemfile information 2023-07-04 14:54:25 +09:00
dependency.rb [rubygems/rubygems] Alias CurrentRuby#mswin?, mswin64?, mingw?, x64_mingw? to #windows?. (This is done instead of logging a deprecation warning.) 2023-03-03 09:50:29 +00:00
deployment.rb
deprecate.rb
digest.rb [rubygems/rubygems] Applied Layout/SpaceAroundOperators cop 2023-03-16 01:59:12 +00:00
dsl.rb Merge RubyGems and Bundler master 2023-01-10 15:53:07 +09:00
endpoint_specification.rb Fix flaky when making materialized specs uniq 2023-03-23 17:18:49 +09:00
env.rb [rubygems/rubygems] Also removed condition of RUBY_PATCHLEVEL 2023-03-17 18:50:55 +09:00
environment_preserver.rb Merge RubyGems and Bundler master 2023-01-10 15:53:07 +09:00
errors.rb
feature_flag.rb
fetcher.rb [rubygems/rubygems] safe marshal gem specs when inflating 2023-02-23 08:50:02 +00:00
force_platform.rb Merge RubyGems-3.4.0 and Bundler-2.4.0 2022-12-24 16:57:07 +09:00
friendly_errors.rb [rubygems/rubygems] Use indented heredoc 2023-03-22 21:21:08 +00:00
gem_helper.rb Merge RubyGems/Bundler master 2022-12-26 15:09:21 +09:00
gem_helpers.rb
gem_tasks.rb
gem_version_promoter.rb Consider prereleases regardless of whether locked 2023-03-28 01:18:50 +00:00
graph.rb
index.rb Merge RubyGems and Bundler master 2023-01-10 15:53:07 +09:00
injector.rb Merge RubyGems and Bundler master 2023-01-10 15:53:07 +09:00
inline.rb Merge RubyGems/Bundler master. 2023-01-31 10:49:08 +09:00
installer.rb Merge RubyGems/Bundler master from 4076391fce5847689bf2ec402b17133fe4e32285 2023-05-30 21:50:07 +09:00
lazy_specification.rb [rubygems/rubygems] Onboard Rubocop Naming/MemoizedInstanceVariableName rule to Bundler. 2023-03-28 15:25:44 +09:00
lockfile_generator.rb Merge rubygems/rubygems HEAD 2023-06-20 13:35:13 +09:00
lockfile_parser.rb Merge RubyGems/Bundler master from 4076391fce5847689bf2ec402b17133fe4e32285 2023-05-30 21:50:07 +09:00
match_metadata.rb
match_platform.rb [rubygems/rubygems] auto-correct Style/YodaCondition 2023-06-15 07:01:28 +09:00
match_remote_metadata.rb
mirror.rb
plugin.rb Merge RubyGems and Bundler master 2023-01-10 15:53:07 +09:00
process_lock.rb
remote_specification.rb Don't suggest retrying with `--full-index` on gemspec errors 2023-03-23 17:18:49 +09:00
resolver.rb Merge rubygems/rubygems HEAD 2023-06-20 13:35:13 +09:00
retry.rb
ruby_dsl.rb
ruby_version.rb [rubygems/rubygems] Onboard Rubocop Naming/MemoizedInstanceVariableName rule to Bundler. 2023-03-28 15:25:44 +09:00
rubygems_ext.rb [rubygems/rubygems] Onboard Rubocop Naming/MemoizedInstanceVariableName rule to Bundler. 2023-03-28 15:25:44 +09:00
rubygems_gem_installer.rb
rubygems_integration.rb [rubygems/rubygems] Auto-correct Performance/FlatMap 2023-06-16 04:10:38 +00:00
runtime.rb [rubygems/rubygems] Extract `Definition#no_resolved_needed?` 2023-06-15 07:01:23 +09:00
safe_marshal.rb Merge https://github.com/rubygems/rubygems/pull/6655 manually. 2023-05-10 15:02:29 +09:00
self_manager.rb [rubygems/rubygems] restart with BUNDLE_VERSION if it's specified 2023-07-13 11:36:03 +09:00
settings.rb [rubygems/rubygems] Introduce bundle config set version feature 2023-07-13 11:36:03 +09:00
setup.rb [rubygems/rubygems] Better suggestion when `bundler/setup` fails due to missing gems 2023-03-07 16:51:36 +09:00
shared_helpers.rb Don't suggest `--full-index` on API Response mismatch errors 2023-03-23 17:18:49 +09:00
similarity_detector.rb
source.rb
source_list.rb Merge RubyGems/Bundler master 2022-12-20 13:15:02 +09:00
source_map.rb
spec_set.rb [rubygems/rubygems] Fix resolver hangs when dealing with an incomplete lockfile 2023-04-06 13:07:16 +09:00
stub_specification.rb
ui.rb
uri_credentials_filter.rb
uri_normalizer.rb Normalize git sources 2023-03-17 18:50:55 +09:00
vendored_fileutils.rb
vendored_persistent.rb
vendored_pub_grub.rb
vendored_thor.rb
vendored_tsort.rb
vendored_uri.rb
version.rb Merge RubyGems/Bundler master 2022-12-26 15:09:21 +09:00
vlad.rb
worker.rb
yaml_serializer.rb [rubygems/rubygems] Move all changes only in RubyGems 2023-04-19 06:56:20 +00:00