mirror of
https://github.com/prometheus/prometheus.git
synced 2025-12-24 10:51:02 +01:00
Merge pull request #17712 from roidelapluie/roidelapluie/fix_update_go_mods
Makefile: Update all Go submodules in update-all-go-deps target
This commit is contained in:
commit
6dc6f73261
15
Makefile
15
Makefile
@ -189,14 +189,19 @@ update-features-testdata:
|
||||
@echo ">> updating features testdata"
|
||||
@$(GO) test ./cmd/prometheus -run TestFeaturesAPI -update-features
|
||||
|
||||
GO_SUBMODULE_DIRS := documentation/examples/remote_storage internal/tools web/ui/mantine-ui/src/promql/tools
|
||||
|
||||
.PHONY: update-all-go-deps
|
||||
update-all-go-deps:
|
||||
@$(MAKE) update-go-deps
|
||||
@echo ">> updating Go dependencies in ./documentation/examples/remote_storage/"
|
||||
@cd ./documentation/examples/remote_storage/ && for m in $$($(GO) list -mod=readonly -m -f '{{ if and (not .Indirect) (not .Main)}}{{.Path}}{{end}}' all); do \
|
||||
update-all-go-deps: update-go-deps
|
||||
$(foreach dir,$(GO_SUBMODULE_DIRS),$(MAKE) update-go-deps-in-dir DIR=$(dir);)
|
||||
|
||||
.PHONY: update-go-deps-in-dir
|
||||
update-go-deps-in-dir:
|
||||
@echo ">> updating Go dependencies in ./$(DIR)/"
|
||||
@cd ./$(DIR) && for m in $$($(GO) list -mod=readonly -m -f '{{ if and (not .Indirect) (not .Main)}}{{.Path}}{{end}}' all); do \
|
||||
$(GO) get $$m; \
|
||||
done
|
||||
@cd ./documentation/examples/remote_storage/ && $(GO) mod tidy
|
||||
@cd ./$(DIR) && $(GO) mod tidy
|
||||
|
||||
.PHONY: check-node-version
|
||||
check-node-version:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user