1
0
mirror of https://github.com/containous/traefik.git synced 2024-12-23 17:34:13 +03:00
traefik/script/validate-vendor

15 lines
336 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
SCRIPT_DIR="$( cd "$( dirname "${0}" )" && pwd -P)"; export SCRIPT_DIR
echo "checking go modules for unintentional changes..."
2018-01-11 19:46:04 +03:00
go mod tidy
git diff --exit-code go.mod
git diff --exit-code go.sum
2018-01-11 19:46:04 +03:00
echo 'Congratulations! All go modules changes are done the right way.'