traefik/script/validate-vendor
Ludovic Fernandez c47849d43a
Update to go1.16
Co-authored-by: Julien Salleyron <julien.salleyron@gmail.com>
Co-authored-by: Michael Matur <michael.matur@gmail.com>
2021-03-22 18:00:04 +01:00

19 lines
378 B
Bash
Executable File

#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
SCRIPT_DIR="$( cd "$( dirname "${0}" )" && pwd -P)"; export SCRIPT_DIR
go generate
echo "checking go modules for unintentional changes..."
go mod tidy
git diff --exit-code go.mod
git diff --exit-code go.sum
echo 'Congratulations! All go modules changes are done the right way.'
rm -rf ./autogen/genstatic/