From a104f132304a446cdee47818fac5296a2ec6c365 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Tue, 13 Jul 2021 14:14:11 +0200 Subject: [PATCH] agent: Add `make vendor` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This has a similar intent as the go code, but not totally equal. For the go code we want to ensure that the vendored code is up-to-date, while here we want to ensure that `cargo vendor` actually works. We happened to release a few tarballs where `cargo vendor` didn't work and it causes some pain for downstream maintainers. Related: #2159 Signed-off-by: Fabiano FidĂȘncio --- src/agent/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/agent/Makefile b/src/agent/Makefile index 55d9f017d..95bf6e1d4 100644 --- a/src/agent/Makefile +++ b/src/agent/Makefile @@ -121,6 +121,10 @@ clean: @rm -f $(GENERATED_FILES) @rm -f tarpaulin-report.html +vendor: + @cargo vendor + + #TARGET test: run cargo tests test: @cargo test --all --target $(TRIPLE) @@ -190,7 +194,8 @@ codecov-html: check_tarpaulin help \ show-header \ show-summary \ - optimize + optimize \ + vendor ##TARGET generate-protocols: generate/update grpc agent protocols generate-protocols: