feat: also allow rockspec directory

This commit is contained in:
infastin 2025-01-14 23:29:43 +05:00
parent 7190e015cb
commit aea6fdb84b

View file

@ -258,7 +258,7 @@ function M.find_rockspec(plugin)
end end
Util.ls(plugin.dir, function(path, name, t) Util.ls(plugin.dir, function(path, name, t)
if t == "directory" and name == "rockspecs" then if t == "directory" and (name == "rockspec" or name == "rockspecs") then
Util.ls(path, function(path, name, t) Util.ls(path, function(path, name, t)
if t == "file" then if t == "file" then
rockspec_file = check_file(path, name) rockspec_file = check_file(path, name)