From 5b75a97b2ce42fa712073fc0a297691977f9dbb0 Mon Sep 17 00:00:00 2001 From: SuperQ Date: Fri, 22 Oct 2021 10:32:03 +0200 Subject: [PATCH] Use download mode for update-go-deps Add `-d` to go get to avoid trying to build/install packages when running `make update-go-deps`. Tested with 1.14. Signed-off-by: SuperQ --- Makefile.common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.common b/Makefile.common index 99e8f9f1b..ed7d1826e 100644 --- a/Makefile.common +++ b/Makefile.common @@ -160,7 +160,7 @@ endif 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; \ + $(GO) get -d $$m; \ done GO111MODULE=$(GO111MODULE) $(GO) mod tidy ifneq (,$(wildcard vendor))