fix(spec): normalize deps before adding spec to make sure merging works as expected

This commit is contained in:
Folke Lemaitre 2023-01-02 09:40:19 +01:00
parent 77ff7beaa4
commit 7d755987ba
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -120,8 +120,8 @@ function Spec:normalize(spec, results, is_dep)
plugin = spec
else
---@cast spec LazyPlugin
spec.dependencies = spec.dependencies and self:normalize(spec.dependencies, {}, true) or nil
plugin = self:add(spec, is_dep)
plugin.dependencies = plugin.dependencies and self:normalize(plugin.dependencies, {}, true) or nil
end
table.insert(results, plugin.name)
end