Skip to content

Commit 5579d72

Browse files
authored
fix(manage): prevend auto conversion 'CRLF' to 'LF' in update lazy-lock.json on Windows. Fixes #1093 (#1094)
1 parent 41d3b2a commit 5579d72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/lazy/manage/lock.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ M._loaded = false
99

1010
function M.update()
1111
vim.fn.mkdir(vim.fn.fnamemodify(Config.options.lockfile, ":p:h"), "p")
12-
local f = assert(io.open(Config.options.lockfile, "w"))
12+
local f = assert(io.open(Config.options.lockfile, "wb"))
1313
f:write("{\n")
1414
M.lock = {}
1515

0 commit comments

Comments
 (0)