From 88f72f54050df1a653052f69f78154bd3ce72293 Mon Sep 17 00:00:00 2001 From: Seonggi Yang Date: Wed, 6 Sep 2017 14:22:23 +0800 Subject: [PATCH] Ignore stderr outputs of go list all --- 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);