Skip to content

Commit

Permalink
Add go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 authored and ti-chi-bot committed Jun 28, 2021
1 parent e9ee699 commit aac0fd1
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 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

0 comments on commit aac0fd1

Please sign in to comment.