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

Commit

Permalink
Inferred gopath should include global gopath Fixes #1525
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Jun 3, 2018
1 parent 7922389 commit fb1ec7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,9 @@ export function getCurrentGoPath(workspaceUri?: vscode.Uri): string {
// No op
}
}
if (inferredGopath && process.env['GOPATH']) {
inferredGopath += path.delimiter + process.env['GOPATH'];
}
}

const configGopath = config['gopath'] ? resolvePath(config['gopath'], currentRoot) : '';
Expand Down

0 comments on commit fb1ec7b

Please sign in to comment.