Skip to content

Commit

Permalink
Make builds work with no GOPATH env var explicitly set - this is not …
Browse files Browse the repository at this point in the history
…needed since 1.8 but the build required it to be set
  • Loading branch information
jimmidyson authored and dlorenc committed Jul 4, 2018
1 parent dc49833 commit c318a93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down Expand Up @@ -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/...
Expand Down

0 comments on commit c318a93

Please sign in to comment.