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

Remove env mask on GOOS and GOARCH #2015

Merged
merged 2 commits into from
Oct 17, 2018
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
5 changes: 1 addition & 4 deletions src/goSuggest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,7 @@ export class GoCompletionItemProvider implements vscode.CompletionItemProvider {
return reject();
}

// Unset GOOS and GOARCH for the `gocode` process to ensure that GOHOSTOS and GOHOSTARCH
// are used as the target operating system and architecture. `gocode` is unable to provide
// autocompletion when the Go environment is configured for cross compilation.
let env = Object.assign({}, getToolsEnvVars(), { GOOS: '', GOARCH: '' });
let env = getToolsEnvVars();
let stdout = '';
let stderr = '';

Expand Down