Skip to content

Commit

Permalink
fix(pkg): make sure state dir exists
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 24, 2024
1 parent fd8229d commit 3515cb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/lazy/pkg/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function M.update()
end
end
local code = "return " .. Util.dump({ version = M.VERSION, specs = M.cache })
vim.fn.mkdir(vim.fn.fnamemodify(Config.options.pkg.cache, ":h"), "p")
Util.write_file(Config.options.pkg.cache, code)
M.dirty = false
M.cache = nil
Expand Down

0 comments on commit 3515cb5

Please sign in to comment.