Merge pull request #2596 from Madhur1997/master

Add checks for dependencies that are not vendored
This commit is contained in:
Sebastiaan van Stijn 2020-07-06 15:16:54 +02:00 committed by GitHub
commit 66ea6250a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 1 deletions

View File

@ -4,3 +4,4 @@
appveyor.yml
build
circle.yml
/vndr.log

1
.gitignore vendored
View File

@ -16,3 +16,4 @@ cli/winresources/rsrc_amd64.syso
/docs/yaml/gen/
coverage.txt
profile.out
/vndr.log

View File

@ -64,8 +64,9 @@ dynbinary: ## build dynamically linked binary
vendor: vendor.conf ## check that vendor matches vendor.conf
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-all-packages-vendored
.PHONY: authors
authors: ## generate AUTHORS file from git history

View File

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