From 930ca55d026dafd2900b11e4c81d572c17145710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Tue, 13 Jul 2021 14:02:24 +0200 Subject: [PATCH] runtime: Add `make handle_vendor` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will help us to ensure that we always update the vendored code when needed. Right now we've been lacking behind and we tend to realise something change during the next mandatory update, which is not exactly optimal. Related: #2159 Signed-off-by: Fabiano FidĂȘncio --- src/runtime/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/runtime/Makefile b/src/runtime/Makefile index 4a69c05c41..52c876bd48 100644 --- a/src/runtime/Makefile +++ b/src/runtime/Makefile @@ -582,7 +582,8 @@ $(MONITOR_OUTPUT): $(SOURCES) $(GENERATED_FILES) $(MAKEFILE_LIST) .git-commit install \ show-header \ show-summary \ - show-variables + show-variables \ + vendor $(TARGET).coverage: $(SOURCES) $(GENERATED_FILES) $(MAKEFILE_LIST) $(QUIET_TEST)go test -o $@ -covermode count @@ -647,6 +648,11 @@ install-scripts: $(SCRIPTS) install-completions: $(QUIET_INST)install --mode 0644 -D $(BASH_COMPLETIONS) $(DESTDIR)/$(BASH_COMPLETIONSDIR)/$(notdir $(BASH_COMPLETIONS)); +handle_vendor: + go mod tidy + go mod vendor + go mod verify + clean: $(QUIET_CLEAN)rm -f \ $(CONFIGS) \