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

Ignore stderr outputs of go list all to fix #1152 #1197

Merged
merged 1 commit into from
Sep 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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