aboutsummaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authorBen Kochie <superq@gmail.com>2019-02-13 14:12:12 +0100
committerGitHub <noreply@github.com>2019-02-13 14:12:12 +0100
commitdc4c58671de96f35b82e74232d882f64cd66ccd9 (patch)
treea236d1bdb862b9aa5e4654fed68c8eb32aa30fd9 /Makefile.common
parentcb9e23c536b1daf2ac50ea52e515509951e0cd16 (diff)
downloadprometheus_node_collector-dc4c58671de96f35b82e74232d882f64cd66ccd9.tar.bz2
prometheus_node_collector-dc4c58671de96f35b82e74232d882f64cd66ccd9.tar.xz
prometheus_node_collector-dc4c58671de96f35b82e74232d882f64cd66ccd9.zip
Update vendoring. (#1257)
* Update vendoring. Update vendoring to latest upstream. Signed-off-by: Ben Kochie <superq@gmail.com>
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile.common b/Makefile.common
index fff85f9..a422e1b 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -36,7 +36,8 @@ GO_VERSION ?= $(shell $(GO) version)
36GO_VERSION_NUMBER ?= $(word 3, $(GO_VERSION)) 36GO_VERSION_NUMBER ?= $(word 3, $(GO_VERSION))
37PRE_GO_111 ?= $(shell echo $(GO_VERSION_NUMBER) | grep -E 'go1\.(10|[0-9])\.') 37PRE_GO_111 ?= $(shell echo $(GO_VERSION_NUMBER) | grep -E 'go1\.(10|[0-9])\.')
38 38
39unexport GOVENDOR 39GOVENDOR :=
40GO111MODULE :=
40ifeq (, $(PRE_GO_111)) 41ifeq (, $(PRE_GO_111))
41 ifneq (,$(wildcard go.mod)) 42 ifneq (,$(wildcard go.mod))
42 # Enforce Go modules support just in case the directory is inside GOPATH (and for Travis CI). 43 # Enforce Go modules support just in case the directory is inside GOPATH (and for Travis CI).
@@ -57,8 +58,6 @@ $(warning Some recipes may not work as expected as the current Go runtime is '$(
57 # This repository isn't using Go modules (yet). 58 # This repository isn't using Go modules (yet).
58 GOVENDOR := $(FIRST_GOPATH)/bin/govendor 59 GOVENDOR := $(FIRST_GOPATH)/bin/govendor
59 endif 60 endif
60
61 unexport GO111MODULE
62endif 61endif
63PROMU := $(FIRST_GOPATH)/bin/promu 62PROMU := $(FIRST_GOPATH)/bin/promu
64STATICCHECK := $(FIRST_GOPATH)/bin/staticcheck 63STATICCHECK := $(FIRST_GOPATH)/bin/staticcheck