From 103747391749413a964f9704a9d3101c79785c77 Mon Sep 17 00:00:00 2001 From: Seonggi Yang Date: Thu, 7 Sep 2017 00:20:53 +0800 Subject: [PATCH] Ignore stderr outputs of go list all (#1197) --- src/goPackages.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/goPackages.ts b/src/goPackages.ts index cce4df278..1cdb06b67 100644 --- a/src/goPackages.ts +++ b/src/goPackages.ts @@ -32,7 +32,7 @@ export function goListAll(): Promise> { // Use `{env: {}}` to make the execution faster. Include GOPATH to account if custom work space exists. const env: any = getToolsEnvVars(); - const cmd = cp.spawn(goRuntimePath, ['list', '-f', '{{.Name}};{{.ImportPath}}', 'all'], { env: env }); + const cmd = cp.spawn(goRuntimePath, ['list', '-f', '{{.Name}};{{.ImportPath}}', 'all'], { env: env, stdio: ['pipe', 'pipe', 'ignore'] }); const chunks = []; cmd.stdout.on('data', (d) => { chunks.push(d);