From 5579d72576b21b9c8c2d01838598aece5dc2be6d Mon Sep 17 00:00:00 2001 From: KANATSU Minoru Date: Mon, 9 Oct 2023 23:17:42 +0900 Subject: [PATCH] fix(manage): prevend auto conversion 'CRLF' to 'LF' in update lazy-lock.json on Windows. Fixes #1093 (#1094) --- lua/lazy/manage/lock.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/manage/lock.lua b/lua/lazy/manage/lock.lua index 4545f74..c7ceb4e 100644 --- a/lua/lazy/manage/lock.lua +++ b/lua/lazy/manage/lock.lua @@ -9,7 +9,7 @@ M._loaded = false function M.update() vim.fn.mkdir(vim.fn.fnamemodify(Config.options.lockfile, ":p:h"), "p") - local f = assert(io.open(Config.options.lockfile, "w")) + local f = assert(io.open(Config.options.lockfile, "wb")) f:write("{\n") M.lock = {}