From 2c3a652f5831bf7884e3c34194183812f63f7348 Mon Sep 17 00:00:00 2001 From: Pontus Leitzler Date: Wed, 22 Mar 2017 18:20:32 +0100 Subject: [PATCH] Use go env to fetch GOPATH to support Go 1.8 Go 1.8 do not require env GOPATH to be set and make will fail if it isn't set. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8229102b..ac8be99c 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ # limitations under the License. GO ?= GO15VENDOREXPERIMENT=1 go -GOPATH := $(firstword $(subst :, ,$(GOPATH))) +GOPATH := $(firstword $(subst :, ,$(shell $(GO) env GOPATH))) PROMU ?= $(GOPATH)/bin/promu STATICCHECK ?= $(GOPATH)/bin/staticcheck