[rubygems/rubygems] Load "bundler/setup" in lib/rubygems.rb
Ruby interpreter loads some special gems at startup: did_you_mean,
error_highlight, and syntax_suggest. These gems are loaded before bundler/setup is loaded by RUBYOPT=-rbundler/setup.
So, the versions of the gems are not controllable by Gemfile.
This change will require "bundler/setup" in rubygems.rb (i.e., before
the special gems are loaded). Now bundle exec sets an environment
variable BUNDLER_SETUP, and rubygems requires the variable if defined.
[rubygems/rubygems] Load "bundler/setup" in lib/rubygems.rb
Ruby interpreter loads some special gems at startup: did_you_mean,
error_highlight, and syntax_suggest. These gems are loaded before
bundler/setup
is loaded byRUBYOPT=-rbundler/setup
.So, the versions of the gems are not controllable by Gemfile.
This change will
require "bundler/setup"
in rubygems.rb (i.e., beforethe special gems are loaded). Now
bundle exec
sets an environmentvariable
BUNDLER_SETUP
, and rubygems requires the variable if defined.See also: https://bugs.ruby-lang.org/issues/19089
https://github.com/rubygems/rubygems/commit/963cb65a2d