Skip to content

Commit

Permalink
Merge pull request #96 from kolyshkin/hack
Browse files Browse the repository at this point in the history
hack/ci/check_mods: simplify
  • Loading branch information
cpuguy83 committed Apr 27, 2023
2 parents aab1666 + 1839a3c commit 7b5a1d0
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions hack/ci/check_mods.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@

set -e

exit_code=0

make vendor
git diff --exit-code go.mod go.sum || exit_code=$?

if [ ${exit_code} -eq 0 ]; then
exit 0
if ! git diff --exit-code go.mod go.sum; then
echo "please run \`make mod\` and check in the changes"
exit 1
fi

echo "please run \`make mod\` and check in the changes"
exit ${exit_code}

0 comments on commit 7b5a1d0

Please sign in to comment.