mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
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.
This commit is contained in:
parent
8e96961f0e
commit
6ee983b127
2 changed files with 8 additions and 5 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue