Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: only diff the go.mod and go.sum (#2163) #2176

Merged
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