We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58145f9 commit 90da3cfCopy full SHA for 90da3cf
extension/src/goInstallTools.ts
@@ -767,7 +767,7 @@ async function defaultInspectGoToolVersion(
767
*/
768
const lines = stdout.split('\n', 3);
769
const goVersion = lines[0] && lines[0].match(/\s+(go\d+.\d+\S*)/)?.[1];
770
- const moduleVersion = lines[2].split(/\s+/)[3];
+ const moduleVersion = lines.length > 2 ? lines[2].split(/\s+/)[3] : "unknown";
771
return { goVersion, moduleVersion };
772
} catch (e) {
773
// either go version failed (e.g. the tool was compiled with a more recent version of go)
0 commit comments