mirror of https://github.com/docker/cli.git
Add checks for dependencies that are not vendored.
`make vendor` fails if any dependency is not vendored. Signed-off-by: Madhur Batra <madhurbatra097@gmail.com>
This commit is contained in:
parent
674c80af89
commit
55451d3c75
|
@ -4,3 +4,4 @@
|
||||||
appveyor.yml
|
appveyor.yml
|
||||||
build
|
build
|
||||||
circle.yml
|
circle.yml
|
||||||
|
/vndr.log
|
||||||
|
|
|
@ -16,3 +16,4 @@ cli/winresources/rsrc_amd64.syso
|
||||||
/docs/yaml/gen/
|
/docs/yaml/gen/
|
||||||
coverage.txt
|
coverage.txt
|
||||||
profile.out
|
profile.out
|
||||||
|
/vndr.log
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -64,8 +64,9 @@ dynbinary: ## build dynamically linked binary
|
||||||
|
|
||||||
vendor: vendor.conf ## check that vendor matches vendor.conf
|
vendor: vendor.conf ## check that vendor matches vendor.conf
|
||||||
rm -rf vendor
|
rm -rf vendor
|
||||||
bash -c 'vndr |& grep -v -i clone'
|
bash -c 'vndr |& grep -v -i clone | tee ./vndr.log'
|
||||||
scripts/validate/check-git-diff vendor
|
scripts/validate/check-git-diff vendor
|
||||||
|
scripts/validate/check-all-packages-vendored
|
||||||
|
|
||||||
.PHONY: authors
|
.PHONY: authors
|
||||||
authors: ## generate AUTHORS file from git history
|
authors: ## generate AUTHORS file from git history
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
WARN_MISS_VENDOR='WARNING: dependency is not vendored'
|
||||||
|
|
||||||
|
if grep -q "$WARN_MISS_VENDOR" "./vndr.log"; then
|
||||||
|
echo
|
||||||
|
echo "Some dependencies are not vendored."
|
||||||
|
echo
|
||||||
|
exit 1
|
||||||
|
fi
|
Loading…
Reference in New Issue