From 22002841653574d57cef7a3137303a25da0796f6 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 22 Dec 2022 09:10:11 +0100 Subject: [PATCH] fix(cache): overwrite cache entry with new modpath when loading a file. Fixes #90 --- lua/lazy/core/cache.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/lazy/core/cache.lua b/lua/lazy/core/cache.lua index c710412..960f449 100644 --- a/lua/lazy/core/cache.lua +++ b/lua/lazy/core/cache.lua @@ -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