actually fix it this time

This commit is contained in:
2024-07-25 10:36:27 -04:00
parent d141c762c1
commit d7a08ca820

View File

@ -829,13 +829,15 @@ return setmetatable({
bench("load", function()
root = register("squibid/dep")
register_recursive(config)
if config["load"] and type(config["load"]) == "function" then
local ok, ret = pcall(config["load"]())
local ok, ret = pcall(config["load"])
if ok and type(ret) == "table" then
register_recursive(ret)
else
logger:log("error", ret)
end
end
register_recursive(config)
sort_dependencies()
ensure_acyclic()
end)