From ce37cb3ea03a349f41558d0536e1eea91633c5ec Mon Sep 17 00:00:00 2001 From: Brian Goff Date: Tue, 26 Nov 2024 17:04:35 +0000 Subject: [PATCH] Down with the sickness (AUTO_GOPATH) Go has a nice tool to inspect the currently set (or default) `GOPATH` with `go env GOPATH`. We should do that rather than absolutely requiring people to manually set `GOPATH` or use the `AUTO_GOPATH`. This doesn't actually remove `AUTO_GOPATH`, people can still use it. Signed-off-by: Brian Goff --- hack/make.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hack/make.sh b/hack/make.sh index ef99c0dfb2..acd20a1c44 100755 --- a/hack/make.sh +++ b/hack/make.sh @@ -77,12 +77,6 @@ if [ "$AUTO_GOPATH" ]; then export GOPATH="${PWD}/.gopath" fi -if [ ! "$GOPATH" ]; then - 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 - if [ -z "${EXCLUDE_AUTO_BUILDTAG_JOURNALD:-}" ] && ${PKG_CONFIG} 'libsystemd' 2> /dev/null; then DOCKER_BUILDTAGS+=" journald" fi