diff options
Diffstat (limited to 'vendor/github.com/prometheus/procfs/Makefile.common')
-rw-r--r-- | vendor/github.com/prometheus/procfs/Makefile.common | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/github.com/prometheus/procfs/Makefile.common b/vendor/github.com/prometheus/procfs/Makefile.common index b978dfc..9320176 100644 --- a/vendor/github.com/prometheus/procfs/Makefile.common +++ b/vendor/github.com/prometheus/procfs/Makefile.common | |||
@@ -150,6 +150,17 @@ else | |||
150 | $(GO) get $(GOOPTS) -t ./... | 150 | $(GO) get $(GOOPTS) -t ./... |
151 | endif | 151 | endif |
152 | 152 | ||
153 | .PHONY: update-go-deps | ||
154 | update-go-deps: | ||
155 | @echo ">> updating Go dependencies" | ||
156 | @for m in $$($(GO) list -mod=readonly -m -f '{{ if and (not .Indirect) (not .Main)}}{{.Path}}{{end}}' all); do \ | ||
157 | $(GO) get $$m; \ | ||
158 | done | ||
159 | GO111MODULE=$(GO111MODULE) $(GO) mod tidy | ||
160 | ifneq (,$(wildcard vendor)) | ||
161 | GO111MODULE=$(GO111MODULE) $(GO) mod vendor | ||
162 | endif | ||
163 | |||
153 | .PHONY: common-test-short | 164 | .PHONY: common-test-short |
154 | common-test-short: $(GOTEST_DIR) | 165 | common-test-short: $(GOTEST_DIR) |
155 | @echo ">> running short tests" | 166 | @echo ">> running short tests" |