diff options
author | Ben Kochie <superq@gmail.com> | 2019-02-13 14:12:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-13 14:12:12 +0100 |
commit | dc4c58671de96f35b82e74232d882f64cd66ccd9 (patch) | |
tree | a236d1bdb862b9aa5e4654fed68c8eb32aa30fd9 /Makefile.common | |
parent | cb9e23c536b1daf2ac50ea52e515509951e0cd16 (diff) | |
download | prometheus_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.common | 5 |
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) | |||
36 | GO_VERSION_NUMBER ?= $(word 3, $(GO_VERSION)) | 36 | GO_VERSION_NUMBER ?= $(word 3, $(GO_VERSION)) |
37 | PRE_GO_111 ?= $(shell echo $(GO_VERSION_NUMBER) | grep -E 'go1\.(10|[0-9])\.') | 37 | PRE_GO_111 ?= $(shell echo $(GO_VERSION_NUMBER) | grep -E 'go1\.(10|[0-9])\.') |
38 | 38 | ||
39 | unexport GOVENDOR | 39 | GOVENDOR := |
40 | GO111MODULE := | ||
40 | ifeq (, $(PRE_GO_111)) | 41 | ifeq (, $(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 | ||
62 | endif | 61 | endif |
63 | PROMU := $(FIRST_GOPATH)/bin/promu | 62 | PROMU := $(FIRST_GOPATH)/bin/promu |
64 | STATICCHECK := $(FIRST_GOPATH)/bin/staticcheck | 63 | STATICCHECK := $(FIRST_GOPATH)/bin/staticcheck |