agent: Add make vendor

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 <fidencio@redhat.com>
This commit is contained in:
Fabiano Fidêncio 2021-07-13 14:14:11 +02:00
parent 579b3f34c2
commit a104f13230

View File

@ -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: