Skip to content

Commit c318a93

Browse files
jimmidysondlorenc
authored andcommitted
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
1 parent dc49833 commit c318a93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ KERNEL_VERSION ?= 4.16.14
3737

3838
GOOS ?= $(shell go env GOOS)
3939
GOARCH ?= $(shell go env GOARCH)
40+
GOPATH ?= $(shell go env GOPATH)
4041
BUILD_DIR ?= ./out
4142
$(shell mkdir -p $(BUILD_DIR))
4243

@@ -208,7 +209,7 @@ out/test.d: pkg/minikube/assets/assets.go
208209

209210
-include out/test.d
210211
test:
211-
./test.sh
212+
GOPATH=$(GOPATH) ./test.sh
212213

213214
pkg/minikube/assets/assets.go: $(shell find deploy/addons -type f)
214215
which go-bindata || GOBIN=$(GOPATH)/bin go get github.com/jteeuwen/go-bindata/...

0 commit comments

Comments
 (0)