Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rikkuness authored Aug 9, 2018
1 parent 0293d21 commit 308b2f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function goBuild(fileUri: vscode.Uri, goConfig: vscode.WorkspaceConfigura
}

const buildEnv = Object.assign({}, getToolsEnvVars());
const tmpPath = path.normalize(path.join(os.tmpdir(), 'go-code-check'));
const tmpPath = path.normalize(path.join(os.tmpdir(), 'go-code-check.' + os.userInfo().username));
const isTestFile = fileUri && fileUri.fsPath.endsWith('_test.go');
const buildFlags: string[] = isTestFile ? getTestFlags(goConfig, null) : (Array.isArray(goConfig['buildFlags']) ? [...goConfig['buildFlags']] : []);
const buildArgs: string[] = isTestFile ? ['test', '-c'] : ['build'];
Expand Down

0 comments on commit 308b2f9

Please sign in to comment.