fix(plugin): clear Plugin._.super when rebuilding

This commit is contained in:
Folke Lemaitre 2023-09-29 10:31:24 +02:00
parent 01d16b67c2
commit f5ed470de6
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 3 additions and 1 deletions

View File

@ -179,8 +179,10 @@ function Spec:rebuild(name)
local fragments = {} ---@type LazyPlugin[]
repeat
local super = plugin._.super
if self.fragments[plugin._.fid] then
plugin._.dep = plugin._.fpid ~= nil
plugin._.super = nil
if plugin._.fdeps then
plugin.dependencies = {}
for _, cid in ipairs(plugin._.fdeps) do
@ -192,7 +194,7 @@ function Spec:rebuild(name)
setmetatable(plugin, nil)
table.insert(fragments, 1, plugin)
end
plugin = plugin._.super
plugin = super
until not plugin
if #fragments == 0 then