fix(rockspec): allow binary lua files. Fixes #1800

This commit is contained in:
Folke Lemaitre 2024-11-04 11:46:48 +01:00
parent cf8ecc2c5e
commit 408449a59a
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 3 additions and 2 deletions

View File

@ -224,9 +224,10 @@ end
---@return table?
function M.parse(file)
local ret = {}
return pcall(function()
loadfile(file, "t", ret)()
local ok = pcall(function()
loadfile(file, nil, ret)()
end) and ret or nil
return ok and ret or nil
end
---@param plugin LazyPlugin