Skip to content

A platform for community discussion. Free, open, simple.

FIX: `plugin:install_all_gems` Rake task not installing plugin gem (#24522)

Alan Guo Xiang Tan189aa5fa4e48
diff --git a/lib/tasks/plugin.rake b/lib/tasks/plugin.rake
index e20c121f0ee..f3c3333f9cb 100644
--- a/lib/tasks/plugin.rake
+++ b/lib/tasks/plugin.rake
@@ -170,18 +170,8 @@ end
desc "install all plugin gems"
task "plugin:install_all_gems" do |t|
- # Left intentionally blank.
- # When the app is being loaded, all missing gems are installed
- # See: lib/plugin_gem.rb
- puts "Done"
-end
-
-desc "install plugin gems"
-task "plugin:install_gems", :plugin do |t, args|
- # Left intentionally blank.
- # When the app is being loaded, all missing gems are installed
- # See: lib/plugin_gem.rb
- puts "Done"
+ ENV["LOAD_PLUGINS"] = "1"
+ Rake::Task["environment"].invoke
end
def spec(plugin, parallel: false, argv: nil)