From 7190e015cb2aa41660a7399e4e9c007165db3b73 Mon Sep 17 00:00:00 2001 From: infastin Date: Tue, 14 Jan 2025 23:18:46 +0500 Subject: [PATCH] chore: only check files inside rockspecs directory --- lua/lazy/pkg/rockspec.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lua/lazy/pkg/rockspec.lua b/lua/lazy/pkg/rockspec.lua index 4a43c6a..1616071 100644 --- a/lua/lazy/pkg/rockspec.lua +++ b/lua/lazy/pkg/rockspec.lua @@ -260,9 +260,11 @@ function M.find_rockspec(plugin) Util.ls(plugin.dir, function(path, name, t) if t == "directory" and name == "rockspecs" then Util.ls(path, function(path, name, t) - rockspec_file = check_file(path, name) - if rockspec_file ~= nil then - return false + if t == "file" then + rockspec_file = check_file(path, name) + if rockspec_file ~= nil then + return false + end end end) if rockspec_file ~= nil then