Skip to content

Commit

Permalink
fix(rocks): dont trigger rebuild for luarocks when build is overriden
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 24, 2024
1 parent c33b9fb commit 146de4e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lua/lazy/core/plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ function Spec:import(spec)
self.importing = nil
return self:error(
"Invalid spec module: `"
.. modname
.. "`\nExpected a `table` of specs, but a `"
.. type(mod)
.. "` was returned instead"
.. modname
.. "`\nExpected a `table` of specs, but a `"
.. type(mod)
.. "` was returned instead"
)
end
self:normalize(mod)
Expand Down Expand Up @@ -216,11 +216,11 @@ function M.update_state()
plugin._ = plugin._ or {}
if plugin.lazy == nil then
local lazy = plugin._.dep
or Config.options.defaults.lazy
or plugin.event
or plugin.keys
or plugin.ft
or plugin.cmd
or Config.options.defaults.lazy
or plugin.event
or plugin.keys
or plugin.ft
or plugin.cmd
plugin.lazy = lazy and true or false
end
if plugin.dir:find(Config.options.root, 1, true) == 1 then
Expand Down Expand Up @@ -264,7 +264,7 @@ function M.update_rocks_state()
end)

for _, plugin in pairs(Config.plugins) do
if plugin._.pkg and plugin._.pkg.source == "rockspec" then
if plugin._.pkg and plugin._.pkg.source == "rockspec" and plugin.build == "rockspec" then
plugin._.build = not installed[plugin.name]
end
end
Expand Down

0 comments on commit 146de4e

Please sign in to comment.