Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Ignore stderr outputs of go list all (#1197)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgyang authored and ramya-rao-a committed Sep 6, 2017
1 parent 48d365e commit 1037473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goPackages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function goListAll(): Promise<Map<string, string>> {
// 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);
Expand Down

0 comments on commit 1037473

Please sign in to comment.