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

Commit

Permalink
use first gopath element when installing tools (#1988)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwren authored and ramya-rao-a committed Oct 15, 2018
1 parent 382806b commit b6306a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/goInstallTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ export function installTools(missing: string[]) {
// Else use the Current Gopath
let toolsGopath = getToolsGopath() || getCurrentGoPath();
if (toolsGopath) {
let paths = toolsGopath.split(path.delimiter);
toolsGopath = paths[0];
envForTools['GOPATH'] = toolsGopath;
} else {
vscode.window.showInformationMessage('Cannot install Go tools. Set either go.gopath or go.toolsGopath in settings.', 'Open User Settings', 'Open Workspace Settings').then(selected => {
Expand Down

0 comments on commit b6306a5

Please sign in to comment.