2017-04-21 09:23:45 +00:00
|
|
|
#!/usr/bin/env bash
|
2017-02-01 23:49:32 +00:00
|
|
|
set -o errexit
|
|
|
|
set -o pipefail
|
|
|
|
set -o nounset
|
|
|
|
|
2019-05-06 07:40:04 +00:00
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${0}" )" && pwd -P)"; export SCRIPT_DIR
|
2017-02-01 23:49:32 +00:00
|
|
|
|
2019-08-11 10:20:53 +00:00
|
|
|
echo "checking go modules for unintentional changes..."
|
2018-01-11 16:46:04 +00:00
|
|
|
|
2019-08-11 10:20:53 +00:00
|
|
|
go mod tidy
|
|
|
|
git diff --exit-code go.mod
|
|
|
|
git diff --exit-code go.sum
|
2018-01-11 16:46:04 +00:00
|
|
|
|
2019-08-11 10:20:53 +00:00
|
|
|
echo 'Congratulations! All go modules changes are done the right way.'
|