Merge pull request #76 from simplesurance/improve_configure_gopath

build: fix: configure fails if GOPATH environment variable not set
This commit is contained in:
Mathias Söderberg 2019-02-25 10:17:48 +00:00 committed by GitHub
commit fb1614c873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
configure vendored
View File

@ -106,6 +106,7 @@ check_docker_version() {
check_go_env() { check_go_env() {
echo -n "Checking \$GOPATH... " echo -n "Checking \$GOPATH... "
GOPATH="$(go env GOPATH)"
if [ -z "$GOPATH" ]; then if [ -z "$GOPATH" ]; then
printf "${RED}invalid${NC} - GOPATH not set\n" printf "${RED}invalid${NC} - GOPATH not set\n"
exit 1 exit 1