mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-24 05:04:05 -08:00
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>
This commit is contained in:
parent
92ba644a37
commit
5b75a97b2c
|
@ -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…
Reference in a new issue