diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2023-03-24 16:25:30 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-28 15:25:42 +0900 |
commit | 4d4743f7e35ea9d97cde10c9ca6fc35ac568bdb1 (patch) | |
tree | 4d55a81d9b4a70e827510971d7ad562d69a5ddfa /lib/bundler/plugin/installer.rb | |
parent | 674c960513b6c77aa4d6e35034441f90fe16a9da (diff) | |
download | ruby-4d4743f7e35ea9d97cde10c9ca6fc35ac568bdb1.tar.gz |
[rubygems/rubygems] Fix installing plugins in frozen mode
Plugins don't use a lockfile, so ignore frozen related settings.
https://github.com/rubygems/rubygems/commit/f17a3bb81f
Diffstat (limited to 'lib/bundler/plugin/installer.rb')
-rw-r--r-- | lib/bundler/plugin/installer.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/bundler/plugin/installer.rb b/lib/bundler/plugin/installer.rb index 81ecafa470..c9ff12ce4b 100644 --- a/lib/bundler/plugin/installer.rb +++ b/lib/bundler/plugin/installer.rb @@ -83,8 +83,11 @@ module Bundler Bundler.configure_gem_home_and_path(Plugin.root) - definition = Definition.new(nil, deps, source_list, true) - install_definition(definition) + Bundler.settings.temporary(:deployment => false, :frozen => false) do + definition = Definition.new(nil, deps, source_list, true) + + install_definition(definition) + end end # Installs the plugins and deps from the provided specs and returns map of |