From 6ee983b12741d2c38b7d2babb88f5ace317dc4b4 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 7 Jun 2021 22:29:47 -0400 Subject: chore(tools): Fix stdout buffer of launched process getting full causing tools/lint.js to hang on Windows (#10888) Also fix Windows only clippy issues. --- tools/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/util.js') diff --git a/tools/util.js b/tools/util.js index 98ccc77ce..cd9e30314 100644 --- a/tools/util.js +++ b/tools/util.js @@ -17,12 +17,12 @@ async function getFilesFromGit(baseDir, cmd) { cmd, stdout: "piped", }); + const output = new TextDecoder().decode(await p.output()); const { success } = await p.status(); if (!success) { throw new Error("gitLsFiles failed"); } - const output = new TextDecoder().decode(await p.output()); p.close(); const files = output.split("\0").filter((line) => line.length > 0).map( -- cgit v1.2.3