make: generate bindings: use vendor

Set `-mod=vendor` when generating the bindings.  We expect all
dependencies to be vendored already.  This should slightly speed
up the bindings generation and prevent redundant network accesses.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg 2021-01-17 16:30:56 +01:00
parent 341c4b1fd9
commit 4629942686
1 changed files with 1 additions and 1 deletions

View File

@ -468,7 +468,7 @@ ifneq ($(shell uname -s), Darwin)
pushd $${dirname}>/dev/null; \
echo $${dirname}; \
echo $(GO) generate; \
$(GO) generate; \
$(GO) generate -mod=vendor; \
popd > /dev/null; \
done;
endif