Skip to content

Commit

Permalink
fix(windows): rocks.toml getting wiped (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
MeguminSama authored Aug 24, 2024
1 parent eb0291b commit 8d6b6e5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lua/rocks/fs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ function fs.write_file(location, mode, contents, callback)
-- mode for the group and others
uv.fs_open(location, mode, tonumber("644", 8), function(err, file)
if file and not err then
local file_pipe = uv.new_pipe(false)
---@cast file_pipe uv_pipe_t
uv.pipe_open(file_pipe, file)
uv.write(file_pipe, contents, function(write_err)
uv.fs_write(file, contents, function(write_err)
if write_err then
local msg = ("Error writing %s: %s"):format(location, err)
log.error(msg)
Expand Down

0 comments on commit 8d6b6e5

Please sign in to comment.