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 20, 2019
1 parent 2b8846c commit d7edd9c
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,10 +1,17 @@
#!/usr/bin/env bash
set -ex

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

go vet ./...
go fmt ./...

# 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 d7edd9c

Please sign in to comment.