Skip to content

Commit 3515cb5

Browse files
committed
fix(pkg): make sure state dir exists
1 parent fd8229d commit 3515cb5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/lazy/pkg/init.lua

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ function M.update()
4848
end
4949
end
5050
local code = "return " .. Util.dump({ version = M.VERSION, specs = M.cache })
51+
vim.fn.mkdir(vim.fn.fnamemodify(Config.options.pkg.cache, ":h"), "p")
5152
Util.write_file(Config.options.pkg.cache, code)
5253
M.dirty = false
5354
M.cache = nil

0 commit comments

Comments
 (0)