Skip to content

Commit

Permalink
fix(windows): use 'w' instead of 'w+' to write queries files
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Mar 28, 2024
1 parent 92199a6 commit eb8bebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/luarocks/build/treesitter-parser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function treesitter_parser.run(rockspec, no_install)
fs.make_dir(queries_dir)
for name, content in pairs(build.queries) do
local queries_file = dir.path(queries_dir, name)
local fd = io.open(queries_file, "w+")
local fd = io.open(queries_file, "w")
if not fd then
return nil, "Could not open " .. queries_file .. " for writing"
end
Expand Down

0 comments on commit eb8bebf

Please sign in to comment.