Browse code

hack: update link to GOPATH documentation

This documentation moved to a different page, and the Go documentation
moved to the https://go.dev/ domain.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2023/08/25 17:30:15
Showing 2 changed files
... ...
@@ -459,7 +459,7 @@ Try {
459 459
     if (-not $inContainer) { Verify-GoVersion }
460 460
 
461 461
     # Verify GOPATH is set
462
-    if ($env:GOPATH.Length -eq 0) { Throw "Missing GOPATH environment variable. See https://golang.org/doc/code.html#GOPATH" }
462
+    if ($env:GOPATH.Length -eq 0) { Throw "Missing GOPATH environment variable. See https://pkg.go.dev/cmd/go#hdr-GOPATH_environment_variable" }
463 463
 
464 464
     # Run autogen if building daemon.
465 465
     if ($Daemon) {
... ...
@@ -79,7 +79,7 @@ if [ "$AUTO_GOPATH" ]; then
79 79
 fi
80 80
 
81 81
 if [ ! "$GOPATH" ]; then
82
-	echo >&2 'error: missing GOPATH; please see https://golang.org/doc/code.html#GOPATH'
82
+	echo >&2 'error: missing GOPATH; please see https://pkg.go.dev/cmd/go#hdr-GOPATH_environment_variable'
83 83
 	echo >&2 '  alternatively, set AUTO_GOPATH=1'
84 84
 	exit 1
85 85
 fi