A platform for community discussion. Free, open, simple.
DEV: Don't load bundler when installing plugin gem. (#16117)
Alan Guo Xiang Tan6b8c62276257
diff --git a/lib/plugin_gem.rb b/lib/plugin_gem.rbindex c870680dbd7..49882b2cd92 100644--- a/lib/plugin_gem.rb+++ b/lib/plugin_gem.rb@@ -16,7 +16,10 @@ module PluginGemcommand = "gem install #{name} -v #{version} -i #{gems_path} --no-document --ignore-dependencies --no-user-install"command += " --source #{opts[:source]}" if opts[:source]puts command- puts `#{command}`++ Bundler.with_unbundled_env do+ puts `#{command}`+ endendif File.exist? spec_file