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