disabled packages were still getting force loaded

This commit is contained in:
2025-07-10 21:20:53 -04:00
parent 9d4322572c
commit 70853bd01e

View File

@ -244,6 +244,10 @@ function package:ensureadded(force)
--- load a package --- load a package
---@param pkg package ---@param pkg package
local function loadpkg(pkg) local function loadpkg(pkg)
if not self.enabled then
return false
end
-- make sure to load the dependencies first -- make sure to load the dependencies first
for _, p in pairs(pkg.requirements) do for _, p in pairs(pkg.requirements) do
if not p.loaded then if not p.loaded then