fix(rocks): dont trigger rebuild for luarocks when build is overriden

This commit is contained in:
Folke Lemaitre 2024-06-24 17:36:59 +02:00
parent c33b9fbf8d
commit 146de4e801
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 10 additions and 10 deletions

View File

@ -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