Skip to content

Commit a345649

Browse files
committed
fix(cache): if we can't load from the cache modpath, find path again instead of erroring right away
1 parent bbace14 commit a345649

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/lazy/core/cache.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ function M.loader(modname)
9595
end
9696
end
9797
chunk, err = M.load(modname, entry.modpath)
98-
else
98+
end
99+
if not chunk then
99100
-- find the modpath and load the module
100101
local modpath = M.find(modname)
101102
if modpath then

0 commit comments

Comments
 (0)