Skip to content

Commit 5021c16

Browse files
committed
hack/tests/sanity-check.sh: ignore go.mod changes caused by go vet
1 parent 4751b95 commit 5021c16

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

hack/tests/sanity-check.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
#!/usr/bin/env bash
22
set -ex
33

4+
# Make sure repo is in clean state before running go vet
5+
git diff --exit-code
6+
47
go vet ./...
8+
9+
# Ignore changes to go.mod caused by running go vet
10+
git checkout go.mod
11+
512
./hack/check_license.sh
613
./hack/check_error_log_msg_format.sh
714

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

0 commit comments

Comments
 (0)