From 6090117ca16e5b685f9a42b2b7dc2133d1083c03 Mon Sep 17 00:00:00 2001 From: prombot Date: Tue, 19 May 2020 00:08:43 +0000 Subject: [PATCH] makefile: update Makefile.common with newer version Signed-off-by: prombot --- Makefile.common | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Makefile.common b/Makefile.common index b978dfc50..9320176ca 100644 --- a/Makefile.common +++ b/Makefile.common @@ -150,6 +150,17 @@ else $(GO) get $(GOOPTS) -t ./... endif +.PHONY: update-go-deps +update-go-deps: + @echo ">> updating Go dependencies" + @for m in $$($(GO) list -mod=readonly -m -f '{{ if and (not .Indirect) (not .Main)}}{{.Path}}{{end}}' all); do \ + $(GO) get $$m; \ + done + GO111MODULE=$(GO111MODULE) $(GO) mod tidy +ifneq (,$(wildcard vendor)) + GO111MODULE=$(GO111MODULE) $(GO) mod vendor +endif + .PHONY: common-test-short common-test-short: $(GOTEST_DIR) @echo ">> running short tests"