From aac0fd1c0f6be428023e6c8fe7dd779ca05ad98c Mon Sep 17 00:00:00 2001 From: hi-rustin Date: Mon, 28 Jun 2021 20:14:29 +0800 Subject: [PATCH] Add go.mod --- tools/check/check-tidy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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