Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
appveyor.yml
build
circle.yml
/vndr.log
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ cli/winresources/rsrc_amd64.syso
/docs/yaml/gen/
coverage.txt
profile.out
/vndr.log
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions scripts/validate/check-all-packages-vendored
Original file line number Diff line number Diff line change
@@ -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."
Comment thread
Madhur1997 marked this conversation as resolved.
echo
exit 1
fi