From 1c16c2c055bcd442c5c4f0fa6d4a85fd5d053a20 Mon Sep 17 00:00:00 2001 From: Fabian Holler Date: Mon, 25 Feb 2019 10:37:05 +0100 Subject: [PATCH] build: fix: configure fails if GOPATH environment variable not set If the GOPATH enviroment variable was not set, go uses the default GOPATH (~/go/). The configure script was only checking if the GOPATH environment is set. If it wasn't the script was failing. Instead of checking if the GOPATH environment variable is set, check if "go env GOPATH" returns a non-emtpy string. --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 499ae23..0e13959 100755 --- a/configure +++ b/configure @@ -106,6 +106,7 @@ check_docker_version() { check_go_env() { echo -n "Checking \$GOPATH... " + GOPATH="$(go env GOPATH)" if [ -z "$GOPATH" ]; then printf "${RED}invalid${NC} - GOPATH not set\n" exit 1