Make the validate-vendor.sh script solely to work with go mod
set -eu -o pipefail
-if [ -f vendor.conf ]; then
- rm -rf vendor/
- vndr |& grep -v -i clone
-else
go mod tidy
if [ -d vendor ]; then
rm -rf vendor/
go mod vendor
fi
-fi
DIFF_PATH="vendor/ go.mod go.sum"
