1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/bundler
Yusuke Endoh 75dca097b8 [bundler/bundler] Do require "rubygems" only when needed
This require causes circular require.

```
$ touch empty_file

$ RUBYGEMS_GEMDEPS=empty_file ./local/bin/ruby -w -e ''
/home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92: warning: /home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92: warning: loading in progress, circular require considered harmful - /home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems.rb
	from <internal:gem_prelude>:1:in  `<internal:gem_prelude>'
	from <internal:gem_prelude>:1:in  `require'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems.rb:1417:in  `<top (required)>'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems.rb:1203:in  `use_gemdeps'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems/user_interaction.rb:47:in  `use_ui'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems.rb:1204:in  `block in use_gemdeps'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in  `require'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in  `require'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/bundler.rb:11:in  `<top (required)>'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/bundler.rb:11:in  `require_relative'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/bundler/rubygems_integration.rb:3:in  `<top (required)>'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in  `require'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in  `require'
```

https://github.com/bundler/bundler/commit/c7c5bcea92
2019-12-25 15:38:55 +09:00
..
cli Merge bundler-2.1.1 from bundler/bundler 2019-12-18 14:53:19 +09:00
compact_index_client
fetcher Prepare to release bundler-2.1.0 2019-12-15 16:41:10 +09:00
installer [bundler/bundler] RUBY_ENGINE should always be defined after 1.8.7 2019-08-03 09:30:00 +09:00
plugin Prepare to release bundler-2.1.0 2019-12-15 16:41:10 +09:00
resolver Add guard as same as == 2019-08-30 12:49:27 +09:00
settings
source Prepare to release bundler-2.1.0 2019-12-15 16:41:10 +09:00
templates [bundler/bundler] Fix comments and messages to refer to https url 2019-09-18 18:26:32 +09:00
ui [bundler/bundler] Respect color option when instantiating shells 2019-08-03 09:29:55 +09:00
vendor Vendor thor 1.0.0 2019-12-15 16:41:10 +09:00
build_metadata.rb [bundler/bundler] build_metadata.rb - fix 'warning: instance variable @git_commit_sha not initialized' 2019-08-03 09:29:58 +09:00
bundler.gemspec Fix some bundler specs (#2380) 2019-08-20 09:46:31 +09:00
capistrano.rb [bundler/bundler] Fix comments and messages to refer to https url 2019-09-18 18:26:32 +09:00
cli.rb Prepare to release bundler-2.1.0 2019-12-15 16:41:10 +09:00
compact_index_client.rb
constants.rb
current_ruby.rb [bundler/bundler] [CurrentRuby] Say we are ruby? when the generic local platform is Gem::Platform::RUBY 2019-08-03 09:30:00 +09:00
definition.rb [bundler/bundler] Merge #7340 2019-09-18 18:26:33 +09:00
dep_proxy.rb
dependency.rb [bundler/bundler] Extract expanded_platforms 2019-08-03 09:29:57 +09:00
deployment.rb
deprecate.rb
dsl.rb Merge Bundler 2.1.0.pre.3 2019-11-11 18:56:25 +09:00
endpoint_specification.rb
env.rb [bundler/bundler] Enable Style/UnneededInterpolation cop 2019-08-03 09:30:00 +09:00
environment_preserver.rb [bundler/bundler] Remove uneeded bundler key 2019-08-03 09:29:58 +09:00
errors.rb
feature_flag.rb Prepare to release bundler-2.1.0 2019-12-15 16:41:10 +09:00
fetcher.rb Prepare to release bundler-2.1.0 2019-12-15 16:41:10 +09:00
friendly_errors.rb Prepare to release bundler-2.1.0 2019-12-15 16:41:10 +09:00
gem_helper.rb Prepare to release bundler-2.1.0 2019-12-15 16:41:10 +09:00
gem_helpers.rb Merge Bundler 2.1.0.pre.3 2019-11-11 18:56:25 +09:00
gem_remote_fetcher.rb
gem_tasks.rb
gem_version_promoter.rb
gemdeps.rb
graph.rb
index.rb
injector.rb
inline.rb Prepare to release bundler-2.1.0 2019-12-15 16:41:10 +09:00
installer.rb [bundler/bundler] [Package] Always resolve remotely for --all-platforms 2019-08-03 09:29:56 +09:00
lazy_specification.rb Prepare to release bundler-2.1.0 2019-12-15 16:41:10 +09:00
lockfile_generator.rb
lockfile_parser.rb Merge Bundler 2.1.0.pre.3 2019-11-11 18:56:25 +09:00
match_platform.rb
mirror.rb Prepare to release bundler-2.1.0 2019-12-15 16:41:10 +09:00
plugin.rb [bundler/bundler] Last relative requires 2019-08-18 13:44:56 +09:00
process_lock.rb
psyched_yaml.rb
remote_specification.rb Prepare to release bundler-2.1.0 2019-12-15 16:41:10 +09:00
resolver.rb
retry.rb
ruby_dsl.rb
ruby_version.rb [bundler/bundler] Use the standard RUBY_ENGINE_VERSION instead of JRUBY_VERSION 2019-08-16 14:30:23 +09:00
rubygems_ext.rb Merge Bundler 2.1.0.pre.3 2019-11-11 18:56:25 +09:00
rubygems_gem_installer.rb
rubygems_integration.rb [bundler/bundler] Do require "rubygems" only when needed 2019-12-25 15:38:55 +09:00
runtime.rb
settings.rb Prepare to release bundler-2.1.0 2019-12-15 16:41:10 +09:00
setup.rb Merge bundler-2.1.1 from bundler/bundler 2019-12-18 14:53:19 +09:00
shared_helpers.rb Merge Bundler 2.1.0.pre.3 2019-11-11 18:56:25 +09:00
similarity_detector.rb [bundler/bundler] Fix comments and messages to refer to https url 2019-09-18 18:26:32 +09:00
source.rb
source_list.rb
spec_set.rb [bundler/bundler] Remove old rubies stuff no longer needed 2019-08-21 07:58:46 +09:00
stub_specification.rb [bundler/bundler] Drop rubygems 2.5.0 and 2.5.1 support 2019-08-03 09:29:58 +09:00
ui.rb
uri_credentials_filter.rb Prepare to release bundler-2.1.0 2019-12-15 16:41:10 +09:00
vendored_fileutils.rb [bundler/bundler] No need to activate the fileutils default gem 2019-08-18 13:45:45 +09:00
vendored_molinillo.rb
vendored_persistent.rb [bundler/bundler] Bump net-http-persistent to 3.0.1 2019-08-03 09:30:00 +09:00
vendored_thor.rb [bundler/bundler] Migrate two more requires to be relative 2019-08-03 09:29:55 +09:00
vendored_uri.rb Prepare to release bundler-2.1.0 2019-12-15 16:41:10 +09:00
version.rb Merge Bundler 2.1.2 from bundler/bundler. 2019-12-25 07:28:02 +09:00
version_ranges.rb
vlad.rb
worker.rb
yaml_serializer.rb [bundler/bundler] Bump rubocop to 0.74.0 2019-08-03 09:30:00 +09:00