Skip to content

Commit

Permalink
fix(cache): overwrite cache entry with new modpath when loading a file.
Browse files Browse the repository at this point in the history
Fixes #90
  • Loading branch information
folke committed Dec 22, 2022
1 parent 6304231 commit 2200284
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/lazy/core/cache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ function M.load(modkey, modpath)

local entry = M.cache[modkey]
if entry then
entry.modpath = modpath
entry.used = os.time()
if M.eq(entry.hash, hash) then
-- found in cache and up to date
Expand Down

0 comments on commit 2200284

Please sign in to comment.