Skip to content

Commit

Permalink
fix(rockspec): allow binary lua files. Fixes #1800
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Nov 4, 2024
1 parent cf8ecc2 commit 408449a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lua/lazy/pkg/rockspec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 408449a

Please sign in to comment.