From e7b078538041517c3bab2f623ec890c2b54b55a6 Mon Sep 17 00:00:00 2001 From: Billie Cleek Date: Sat, 22 Jul 2017 08:45:34 -0700 Subject: [PATCH] support default GOPATH set GOPATH as an explicit Make variable instead of relying on the environment variable so that contributors that use the default GOPATH without setting the GOPATH environment variable can build the dev target. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index f86b30e06..d7f3578ec 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ GITBRANCH:=$(shell git symbolic-ref --short HEAD 2>/dev/null) GOFMT_FILES?=$$(find . -not -path "./vendor/*" -name "*.go") GOOS=$(shell go env GOOS) GOARCH=$(shell go env GOARCH) +GOPATH=$(shell go env GOPATH) # Get the git commit GIT_DIRTY=$(shell test -n "`git status --porcelain`" && echo "+CHANGES" || true)