From 2125d8efc3700b9d302c2a2f995856ccaef85a3f Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Fri, 2 Feb 2018 10:54:21 -0800 Subject: [PATCH] Fix vendor validation vendor/ must be removed first, otherwise files added to vendor/ that aren't added to vendor.conf will not cause the validation to fail. Signed-off-by: Daniel Nephin --- script/validate/vendor | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/validate/vendor b/script/validate/vendor index 458a65c0a..dac05f1b4 100755 --- a/script/validate/vendor +++ b/script/validate/vendor @@ -1,7 +1,8 @@ #!/usr/bin/env bash set -eu -o pipefail -vndr 2>&1 | grep -v -i clone +rm -rf vendor/ +vndr |& grep -v -i clone DIFF_PATH="vendor/" DIFF=$(git status --porcelain -- "$DIFF_PATH")