Skip to content

Commit

Permalink
tools: only diff the go.mod and go.sum (#2163) (#2175)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Jul 12, 2021
1 parent 003018d commit bf0a29e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/check/check-tidy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ set -euo pipefail

GO111MODULE=on go mod tidy

if [ `git --no-pager diff | 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
git --no-pager diff go.mod go.sum
exit 1
fi

0 comments on commit bf0a29e

Please sign in to comment.