Skip to content

Commit dc150df

Browse files
committed
test(lockfile): create config dir if it does not exist
1 parent 4cf176b commit dc150df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/lazy/manage/lock.lua

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ M.lock = {}
88
M._loaded = false
99

1010
function M.update()
11+
vim.fn.mkdir(vim.fn.fnamemodify(Config.options.lockfile, ":p:h"), "p")
1112
local f = assert(io.open(Config.options.lockfile, "w"))
1213
f:write("{\n")
1314
M.lock = {}

0 commit comments

Comments
 (0)