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

Commit

Permalink
Remove buildflag -i as it will be added later Fixes #1064
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Jul 10, 2017
1 parent 5d4611d commit a8441ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/goCheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ export function check(filename: string, goConfig: vscode.WorkspaceConfiguration)

if (!!goConfig['buildOnSave'] && goConfig['buildOnSave'] !== 'off') {
let buildFlags = goConfig['buildFlags'] || [];
// Remove the -i flag as it will be added later anyway
if (buildFlags.indexOf('-i') > -1) {
buildFlags.splice(buildFlags.indexOf('-i'), 1);
}

let buildTags = '"' + goConfig['buildTags'] + '"';

let tmpPath = path.normalize(path.join(os.tmpdir(), 'go-code-check'));
Expand Down

0 comments on commit a8441ff

Please sign in to comment.