Browse Source

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 <superq@gmail.com>
pull/9564/head
SuperQ 3 years ago
parent
commit
5b75a97b2c
No known key found for this signature in database
GPG Key ID: C646B23C9E3245F1
  1. 2
      Makefile.common

2
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))

Loading…
Cancel
Save