ruby/lib
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
..
bundler [rubygems/rubygems] Don't run any git commands when sorting and comparing git sources 2023-07-13 11:36:03 +09:00
cgi [ruby/cgi] Add TruffleRuby support and add it in CI 2023-05-29 19:33:38 +00:00
csv [ruby/csv] Bump version 2023-06-28 16:37:10 +09:00
did_you_mean [ruby/did_you_mean] Bump version to 1.6.3 2022-12-19 14:59:59 +09:00
drb [ruby/drb] Bump version to 2.1.1 2022-12-05 05:59:33 +00:00
erb [ruby/erb] Version 4.0.2 2022-11-29 04:58:29 +00:00
error_highlight [ruby/error_highlight] Identify which node in `Foo::Bar::Baz` causes a NameError 2023-01-13 08:25:09 +00:00
forwardable [ruby/forwardable] Move `:stopdoc:` directive 2022-03-14 14:44:46 +09:00
irb [ruby/irb] Bump version to 1.7.3 2023-07-13 02:16:04 +00:00
logger [ruby/logger] Add Logger#with_level{...} for block-scoped log level. 2023-02-10 01:08:49 +00:00
net Redirect to `IO::NULL` for the portability 2023-05-05 18:52:36 +09:00
open3 Redirect to `IO::NULL` for the portability 2023-05-05 18:52:36 +09:00
optparse [ruby/optparse] Add rdoc options 2022-01-12 21:16:01 +09:00
random [DOC] Improve Random::Formatter docs 2022-12-11 18:49:56 +02:00
rdoc [ruby/rdoc] [DOC] Improve CSS for "toggle source" hovering over one more method signatures 2023-07-05 04:09:08 +00:00
reline [ruby/reline] Bump version to 0.3.6 2023-07-08 08:53:46 +00:00
rinda [ruby/rinda] Expose Rinda::VERSION 2023-04-21 06:22:52 +00:00
ruby_vm/rjit YJIT: Fix autosplat miscomp for blocks with optionals (#8006) 2023-07-04 10:45:29 -04:00
rubygems [rubygems/rubygems] Fixup 2023-06-27 07:37:24 +00:00
set [ruby/set] Expose Set::VERSION 2023-04-25 01:58:12 +00:00
syntax_suggest [ruby/syntax_suggest] [DOC] Fix method name 2023-06-28 16:34:53 +09:00
unicode_normalize update Unicode normalization tables to version 15.0.0 2022-12-06 10:11:33 +09:00
uri [ruby/uri] Bump up v0.12.2 2023-06-29 01:07:52 +00:00
yaml Redirect to `IO::NULL` for the portability 2023-05-05 18:52:36 +09:00
yarp YARP resync (#8059) 2023-07-12 12:46:38 -04:00
English.gemspec Redirect to `IO::NULL` for the portability 2023-05-05 18:52:36 +09:00
English.rb [ruby/English] Replace HTML5 deprecated tag <tt> with <code> 2023-02-06 05:20:34 +00:00
abbrev.gemspec [ruby/abbrev] Expose Abbrev::VERSION 2023-04-25 01:55:56 +00:00
abbrev.rb [ruby/abbrev] Update lib/abbrev.rb 2023-04-25 01:55:57 +00:00
base64.gemspec Fixed version detection paths in ruby repository 2023-04-03 12:00:59 +09:00
base64.rb [ruby/base64] Expose Base64::VERSION 2023-04-03 02:45:42 +00:00
benchmark.gemspec Fixup 5bfb317a93 2023-05-25 16:09:29 +09:00
benchmark.rb [ruby/benchmark] Don't use version.rb 2023-05-25 07:08:44 +00:00
bundler.rb Merge RubyGems/Bundler master from 4076391fce5847689bf2ec402b17133fe4e32285 2023-05-30 21:50:07 +09:00
cgi.rb [ruby/cgi] Bump up 0.3.6 2022-11-28 04:40:26 +00:00
csv.rb [ruby/csv] All Enumerable based methods consume the same lines with other methods 2023-05-25 01:44:17 +09:00
delegate.gemspec Move gemspec files to top of lib directory. 2023-05-25 15:47:48 +09:00
delegate.rb [ruby/delegate] Bump version to 0.3.0 2022-12-05 05:47:54 +00:00
did_you_mean.rb [ruby/did_you_mean] Keep the deprecated API for another year in case this could break 'bundle install' 2023-01-07 08:47:05 +00:00
drb.rb
erb.gemspec Apply the accidental commits again before Ruby 3.2. 2022-12-26 12:07:42 +09:00
erb.rb [ruby/erb] [DOC] Use indented heredoc 2023-03-21 15:05:29 +00:00
error_highlight.rb
fileutils.gemspec
fileutils.rb [ruby/fileutils] Bump up v1.7.1 2023-04-03 05:19:00 +00:00
find.gemspec Fixed version detection paths in ruby repository 2023-04-03 12:00:59 +09:00
find.rb [ruby/find] Expose Find::VERSION 2023-04-03 02:40:37 +00:00
forwardable.rb [ruby/forwardable] Bump version to 1.3.3 2022-12-05 06:15:38 +00:00
getoptlong.gemspec Move gemspec files to top of lib directory. 2023-05-25 15:47:48 +09:00
getoptlong.rb [ruby/getoptlong] Bump version to 0.2.0 2022-12-05 06:19:25 +00:00
ipaddr.gemspec Support directory layout of ruby/ruby repository 2022-02-10 17:18:05 +09:00
ipaddr.rb [ruby/ipaddr] Consider IPv4-mapped IPv6 addresses private if IPv4 address is private 2023-06-22 16:40:46 +00:00
irb.rb [ruby/irb] Refactor eval history 2023-07-04 15:17:41 +00:00
logger.rb [ruby/logger] Add Logger#with_level{...} for block-scoped log level. 2023-02-10 01:08:49 +00:00
mkmf.rb Allow nmake to ignore errors 2023-07-10 19:21:47 +09:00
mutex_m.gemspec [ruby/mutex_m] Drop to support Ruby 2.4 2023-01-12 05:38:31 +00:00
mutex_m.rb [ruby/mutex_m] Avoid anonymous eval 2023-01-12 05:41:59 +00:00
observer.gemspec Move gemspec files to top of lib directory. 2023-05-25 15:47:48 +09:00
observer.rb
open-uri.gemspec [ruby/open-uri] Expose OpenURI::VERSION 2023-04-13 09:47:40 +00:00
open-uri.rb [ruby/open-uri] Expose OpenURI::VERSION 2023-04-13 09:47:40 +00:00
open3.rb [ruby/open3] Update to match JRuby 9.4 2021-12-09 19:28:54 +09:00
optionparser.rb
optparse.rb [ruby/optparse] Document requires needed for Date/DateTime/Time/URI/Shellwords support 2023-04-04 23:43:58 +00:00
ostruct.gemspec Move gemspec files to top of lib directory. 2023-05-25 15:47:48 +09:00
ostruct.rb [ruby/ostruct] v0.5.5 2022-04-01 00:18:36 +09:00
pp.gemspec [ruby/pp] Expose PP::VERSION 2023-04-14 01:49:51 +00:00
pp.rb [ruby/pp] Expose PP::VERSION 2023-04-14 01:49:51 +00:00
prettyprint.gemspec [ruby/prettyprint] Expose PrettyPrint::VERSION 2023-04-14 01:52:08 +00:00
prettyprint.rb [ruby/prettyprint] Expose PrettyPrint::VERSION 2023-04-14 01:52:08 +00:00
pstore.gemspec Move gemspec files to top of lib directory. 2023-05-25 15:47:48 +09:00
pstore.rb [ruby/pstore] Remove (newly unneeded) remarks about aliases 2023-02-19 23:07:33 +00:00
rdoc.rb [ruby/rdoc] Relative loading for easier development (https://github.com/ruby/rdoc/pull/821) 2022-02-12 15:06:06 +09:00
readline.gemspec [ruby/readline] Bump version to 0.0.3 2021-12-24 17:54:09 +09:00
readline.rb [ruby/readline] Suppress constant redefinition warning 2021-11-29 18:50:27 +09:00
reline.rb [ruby/reline] Reduce direct references to `Reline::IOGate` 2023-07-07 17:27:25 +00:00
resolv-replace.gemspec [ruby/resolv-replace] Bump version to 0.1.1 2022-12-14 17:42:15 +09:00
resolv-replace.rb
resolv.gemspec [ruby/resolv] Expose Resolv::VERSION 2023-04-14 01:46:38 +00:00
resolv.rb [ruby/resolv] Prefer `Array#concat` over `#+=` on `Array` 2023-04-28 11:29:02 +00:00
ruby2_keywords.gemspec
rubygems.rb util/rubocop -A --only Style/NumericLiteralPrefix 2023-04-11 19:12:28 +09:00
securerandom.gemspec [ruby/securerandom] Expose SecureRandom::VERSION 2023-04-14 01:43:47 +00:00
securerandom.rb [ruby/securerandom] Expose SecureRandom::VERSION 2023-04-14 01:43:47 +00:00
set.rb [ruby/set] Update lib/set.rb 2023-04-25 01:58:12 +00:00
shellwords.gemspec [ruby/shellwords] Expose Shellwords::VERSION 2023-04-13 09:48:55 +00:00
shellwords.rb [ruby/shellwords] Expose Shellwords::VERSION 2023-04-13 09:48:55 +00:00
singleton.gemspec Move gemspec files to top of lib directory. 2023-05-25 15:47:48 +09:00
singleton.rb [ruby/singleton] Simplify implementation of `Singleton#instance`. 2023-06-05 04:29:37 +00:00
syntax_suggest.rb Sync SyntaxSuggest 2022-08-19 10:02:24 +09:00
tempfile.gemspec Redirect to `IO::NULL` for the portability 2023-05-05 18:52:36 +09:00
tempfile.rb [ruby/tempfile] Expose Tempfile::VERSION 2023-04-13 09:49:14 +00:00
time.gemspec [ruby/time] Expose Time::VERSION 2023-04-13 18:51:18 +09:00
time.rb [ruby/time] Expose Time::VERSION 2023-04-13 18:51:18 +09:00
timeout.gemspec [ruby/timeout] Require Ruby >= 2.6 for the timeout gem 2023-07-03 09:57:07 +00:00
timeout.rb [ruby/timeout] Bump up v0.4.0 2023-06-23 03:52:03 +00:00
tmpdir.gemspec Redirect to `IO::NULL` for the portability 2023-05-05 18:52:36 +09:00
tmpdir.rb [ruby/tmpdir] [Bug #18933] Make `Dir.mktmpdir` Ractor-safe 2023-07-03 05:47:43 +00:00
tsort.gemspec Fixed version detection paths in ruby repository 2023-04-03 12:00:59 +09:00
tsort.rb [ruby/tsort] Expose TSort::VERSION 2023-04-03 02:41:44 +00:00
un.gemspec [ruby/un] Expose UN::VERSION 2023-04-13 09:47:22 +00:00
un.rb [ruby/un] Expose UN::VERSION 2023-04-13 09:47:22 +00:00
uri.rb [ruby/uri] Feat: Support WSS 2022-04-22 11:59:54 +09:00
weakref.gemspec Move gemspec files to top of lib directory. 2023-05-25 15:47:48 +09:00
weakref.rb [ruby/weakref] Bump version to 0.1.2 2022-12-14 06:16:29 +00:00
yaml.rb Rename YAML::VERSION. It's conflict with Psych::VERSION 2023-04-03 12:43:11 +09:00
yarp.rb [ruby/yarp] Add source to ParseResult 2023-07-07 17:46:46 +00:00