Skip to content

Commit 408449a

Browse files
committed
fix(rockspec): allow binary lua files. Fixes #1800
1 parent cf8ecc2 commit 408449a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lua/lazy/pkg/rockspec.lua

+3-2
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,10 @@ end
224224
---@return table?
225225
function M.parse(file)
226226
local ret = {}
227-
return pcall(function()
228-
loadfile(file, "t", ret)()
227+
local ok = pcall(function()
228+
loadfile(file, nil, ret)()
229229
end) and ret or nil
230+
return ok and ret or nil
230231
end
231232

232233
---@param plugin LazyPlugin

0 commit comments

Comments
 (0)