1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Stop circular require warning

This commit is contained in:
Kazuhiro NISHIYAMA 2019-06-06 15:38:00 +09:00
parent 861b50d81d
commit c2a9c35024
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -1207,7 +1207,7 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
ENV["BUNDLE_GEMFILE"] ||= File.expand_path(path)
require 'rubygems/user_interaction'
Gem::DefaultUserInteraction.use_ui(ui) do
require "bundler"
require "bundler" unless caller_locations.any? { |location| location.path.end_with?("bundler.rb") }
begin
@gemdeps = Bundler.setup
ensure