aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPontus Leitzler <leitzler@users.noreply.github.com>2017-03-22 18:20:32 +0100
committerGitHub <noreply@github.com>2017-03-22 18:20:32 +0100
commit2c3a652f5831bf7884e3c34194183812f63f7348 (patch)
treeee660c38b7223ae73133086e49aa0db124699c83
parent6580c95305dd97499025bf3bcfc9a461173ffa54 (diff)
downloadprometheus_node_collector-2c3a652f5831bf7884e3c34194183812f63f7348.tar.bz2
prometheus_node_collector-2c3a652f5831bf7884e3c34194183812f63f7348.tar.xz
prometheus_node_collector-2c3a652f5831bf7884e3c34194183812f63f7348.zip
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.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8229102..ac8be99 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@
12# limitations under the License. 12# limitations under the License.
13 13
14GO ?= GO15VENDOREXPERIMENT=1 go 14GO ?= GO15VENDOREXPERIMENT=1 go
15GOPATH := $(firstword $(subst :, ,$(GOPATH))) 15GOPATH := $(firstword $(subst :, ,$(shell $(GO) env GOPATH)))
16 16
17PROMU ?= $(GOPATH)/bin/promu 17PROMU ?= $(GOPATH)/bin/promu
18STATICCHECK ?= $(GOPATH)/bin/staticcheck 18STATICCHECK ?= $(GOPATH)/bin/staticcheck