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 8165dcd commit 38754e7Copy full SHA for 38754e7
internal/version/version.go
@@ -445,6 +445,9 @@ func exe() string {
445
}
446
447
func goroot(version string) (string, error) {
448
+ if os.Getenv("GOTOOLCHAINROOT") != "" {
449
+ return filepath.Join(os.Getenv("GOTOOLCHAINROOT"), version), nil
450
+ }
451
home, err := homedir()
452
if err != nil {
453
return "", fmt.Errorf("failed to get home directory: %v", err)
0 commit comments