Skip to content

Commit 2125d8e

Browse files
committed
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 <[email protected]>
1 parent 44f6bc4 commit 2125d8e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

script/validate/vendor

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env bash
22
set -eu -o pipefail
33

4-
vndr 2>&1 | grep -v -i clone
4+
rm -rf vendor/
5+
vndr |& grep -v -i clone
56

67
DIFF_PATH="vendor/"
78
DIFF=$(git status --porcelain -- "$DIFF_PATH")

0 commit comments

Comments
 (0)