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

Commit

Permalink
use last gopath element when installing tools
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwren committed Oct 11, 2018
1 parent 8c57367 commit b3993ff
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 @@ -301,6 +301,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[paths.length-1];
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 b3993ff

Please sign in to comment.