Skip to content

Commit 9893430

Browse files
committed
fix(cache): dont return directories in lsmod
1 parent 60e96b4 commit 9893430

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/lazy/core/cache.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ function M.find_dir(modname)
271271
local modpath = M.find(modname, { patterns = { "" } })
272272
if modpath then
273273
local root = modpath:gsub("/init%.lua$", ""):gsub("%.lua$", "")
274-
return root, modpath
274+
return root, (modpath ~= root and modpath or nil)
275275
end
276276
end
277277

0 commit comments

Comments
 (0)