Skip to content

Commit

Permalink
fix(spec): normalize deps before adding spec to make sure merging wor…
Browse files Browse the repository at this point in the history
…ks as expected
  • Loading branch information
folke committed Jan 2, 2023
1 parent 77ff7be commit 7d75598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/core/plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d75598

Please sign in to comment.