Browse Source

Install plugins during commit() phase

This solves first time startup in that the plugins are available when
other modules would normally expect them to be, instead of having to
handle a special case of them only being available later.
master
Adam Pippin 2 years ago
parent
commit
50c7dcc503
  1. 8
      lua/module/plugins.lua

8
lua/module/plugins.lua

@ -110,6 +110,10 @@ function M:commit()
package_manager:exit()
if (self.auto_install and (package_manager:hasPendingPackages() or self.needs_install)) then
self:install()
end
end
-- Once we determine a plugin should be loaded, this actually does it
@ -211,10 +215,6 @@ function M:checkPluginRequiredPlugins(plugin)
end
function M:boot()
if (self.auto_install and (package_manager:hasPendingPackages() or self.needs_install)) then
self:install()
end
if (self.auto_cleanup) then
self:cleanup()
end

Loading…
Cancel
Save