actually fix it this time
This commit is contained in:
@ -829,13 +829,15 @@ return setmetatable({
|
|||||||
|
|
||||||
bench("load", function()
|
bench("load", function()
|
||||||
root = register("squibid/dep")
|
root = register("squibid/dep")
|
||||||
register_recursive(config)
|
|
||||||
if config["load"] and type(config["load"]) == "function" then
|
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
|
if ok and type(ret) == "table" then
|
||||||
register_recursive(ret)
|
register_recursive(ret)
|
||||||
|
else
|
||||||
|
logger:log("error", ret)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
register_recursive(config)
|
||||||
sort_dependencies()
|
sort_dependencies()
|
||||||
ensure_acyclic()
|
ensure_acyclic()
|
||||||
end)
|
end)
|
||||||
|
Reference in New Issue
Block a user