diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-08-19 14:03:43 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-08-21 17:54:11 +0900 |
commit | 560941e711bed8e8cdd0183b76d9e2057cce6806 (patch) | |
tree | 212894e36eeba163f779a32e524ad68a2f9b2189 /lib | |
parent | b87ddd7538220e9782274281356fd55bfd29078b (diff) | |
download | ruby-560941e711bed8e8cdd0183b76d9e2057cce6806.tar.gz |
[rubygems/rubygems] Fix edge case where `bundler/inline` unintentionally skips install
If the application has the `no_install` setting set for `bundle
package`, then `bundler/inline` would silently skip installing any gems.
https://github.com/rubygems/rubygems/commit/7864f49b27
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/inline.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/inline.rb b/lib/bundler/inline.rb index 8ef580f1f0..25e055fbe4 100644 --- a/lib/bundler/inline.rb +++ b/lib/bundler/inline.rb @@ -54,7 +54,7 @@ def gemfile(install = false, options = {}, &gemfile) Bundler.ui = install ? ui : Bundler::UI::Silent.new if install || definition.missing_specs? - Bundler.settings.temporary(:inline => true) do + Bundler.settings.temporary(:inline => true, :no_install => false) do installer = Bundler::Installer.install(Bundler.root, definition, :system => true) installer.post_install_messages.each do |name, message| Bundler.ui.info "Post-install message from #{name}:\n#{message}" |