Skip to content

Commit

Permalink
tools: only diff the go.mod and go.sum (#2163) (#2176)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Jul 9, 2021
1 parent e6a8138 commit 6103295
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 6103295

Please sign in to comment.