Skip to content

Commit

Permalink
hack/tests/sanity-check.sh: ignore go.mod changes caused by go vet
Browse files Browse the repository at this point in the history
  • Loading branch information
joelanford committed Oct 16, 2019
1 parent 4751b95 commit 5021c16
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion hack/tests/sanity-check.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
#!/usr/bin/env bash
set -ex

# Make sure repo is in clean state before running go vet
git diff --exit-code

go vet ./...

# Ignore changes to go.mod caused by running go vet
git checkout go.mod

./hack/check_license.sh
./hack/check_error_log_msg_format.sh

# Make sure repo is in clean state
# Make sure repo is still in a clean state.
git diff --exit-code

0 comments on commit 5021c16

Please sign in to comment.