Skip to content

Commit

Permalink
fix(fetch): use /dev/null logfile for wget (chipsalliance#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
williamboman authored Aug 26, 2022
1 parent c2dc5ed commit 7850abe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/mason-core/fetch.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ local function fetch(url, opts)
.wget({
headers,
"-nv",
"-o",
"/dev/null",
"-O",
opts.out_file or "-",
("--method=%s"):format(opts.method),
Expand Down
4 changes: 4 additions & 0 deletions tests/mason-core/fetch_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ describe("fetch", function()
"--header=X-Custom-Header: here",
},
"-nv",
"-o",
"/dev/null",
"-O",
"-",
"--method=GET",
Expand Down Expand Up @@ -80,6 +82,8 @@ describe("fetch", function()
"--header=User-Agent: mason.nvim (+https://github.com/williamboman/mason.nvim)",
},
"-nv",
"-o",
"/dev/null",
"-O",
"/test.json",
"--method=GET",
Expand Down

0 comments on commit 7850abe

Please sign in to comment.