diff --git a/tools/check/check-tidy.sh b/tools/check/check-tidy.sh index 2a7aea5bdfb..cf0a7e6337f 100755 --- a/tools/check/check-tidy.sh +++ b/tools/check/check-tidy.sh @@ -3,8 +3,8 @@ set -euo pipefail GO111MODULE=on go mod tidy -if [ "$(git --no-pager diff go.sum | wc -c)" -ne 0 ]; then +if [ "$(git --no-pager diff go.mod go.sum | wc -c)" -ne 0 ]; then echo "Please run \`go mod tidy\` to clean up" - git --no-pager diff go.sum + git --no-pager diff go.mod go.sum exit 1 fi