From 6cf9afe53c1ee4594555a2ed0bccc8da06de7b04 Mon Sep 17 00:00:00 2001
From: Sebastiaan van Stijn <github@gone.nl>
Date: Fri, 25 Aug 2023 10:30:15 +0200
Subject: [PATCH] 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>
(cherry picked from commit 2aabd6447753bde5c844b2549cd2330cb1383bb6)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
---
 hack/make.ps1 | 2 +-
 hack/make.sh  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hack/make.ps1 b/hack/make.ps1
index 9359d8f52d..b5883435dc 100644
--- a/hack/make.ps1
+++ b/hack/make.ps1
@@ -464,7 +464,7 @@ Try {
     if (-not $inContainer) { Verify-GoVersion }
 
     # Verify GOPATH is set
-    if ($env:GOPATH.Length -eq 0) { Throw "Missing GOPATH environment variable. See https://golang.org/doc/code.html#GOPATH" }
+    if ($env:GOPATH.Length -eq 0) { Throw "Missing GOPATH environment variable. See https://pkg.go.dev/cmd/go#hdr-GOPATH_environment_variable" }
 
     # Run autogen if building daemon.
     if ($Daemon) {
diff --git a/hack/make.sh b/hack/make.sh
index 5b6457fdb1..1b747e5a85 100755
--- a/hack/make.sh
+++ b/hack/make.sh
@@ -79,7 +79,7 @@ if [ "$AUTO_GOPATH" ]; then
 fi
 
 if [ ! "$GOPATH" ]; then
-	echo >&2 'error: missing GOPATH; please see https://golang.org/doc/code.html#GOPATH'
+	echo >&2 'error: missing GOPATH; please see https://pkg.go.dev/cmd/go#hdr-GOPATH_environment_variable'
 	echo >&2 '  alternatively, set AUTO_GOPATH=1'
 	exit 1
 fi