You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

verify-vendor.sh 461 B

123456789101112131415161718
  1. #!/usr/bin/env bash
  2. set -o errexit
  3. set -o nounset
  4. set -o pipefail
  5. SEDNA_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
  6. UPDATE_SCRIPT=hack/update-vendor.sh
  7. ${SEDNA_ROOT}/${UPDATE_SCRIPT}
  8. if git status --short 2>/dev/null | grep -qE 'go\.mod|go\.sum|vendor/'; then
  9. echo "FAILED: vendor verify failed." >&2
  10. echo "Please run the command to update your vendor directories: $UPDATE_SCRIPT" >&2
  11. exit 1
  12. else
  13. echo "SUCCESS: vendor verified."
  14. fi