From b6306a53bb13136d2ea81bfb18d19dd1fe208090 Mon Sep 17 00:00:00 2001 From: "Jay R. Wren" Date: Mon, 15 Oct 2018 17:33:50 -0400 Subject: [PATCH] use first gopath element when installing tools (#1988) --- src/goInstallTools.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/goInstallTools.ts b/src/goInstallTools.ts index d50d08bf0..cd23cb043 100644 --- a/src/goInstallTools.ts +++ b/src/goInstallTools.ts @@ -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 => {