Make builds work with no GOPATH env var explicitly set - this is not needed since 1.8 but the build required it to be set

pull/2961/head
Jimmi Dyson 2018-07-04 12:23:00 +01:00 committed by dlorenc
parent dc49833df8
commit c318a93a58
1 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@ KERNEL_VERSION ?= 4.16.14
GOOS ?= $(shell go env GOOS)
GOARCH ?= $(shell go env GOARCH)
GOPATH ?= $(shell go env GOPATH)
BUILD_DIR ?= ./out
$(shell mkdir -p $(BUILD_DIR))
@ -208,7 +209,7 @@ out/test.d: pkg/minikube/assets/assets.go
-include out/test.d
test:
./test.sh
GOPATH=$(GOPATH) ./test.sh
pkg/minikube/assets/assets.go: $(shell find deploy/addons -type f)
which go-bindata || GOBIN=$(GOPATH)/bin go get github.com/jteeuwen/go-bindata/...