Skip to content

Commit d7edd9c

Browse files
committed
hack/tests/sanity-check.sh: ignore go.mod changes caused by go vet
1 parent 2b8846c commit d7edd9c

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,10 +1,17 @@
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 ./...
58
go fmt ./...
9+
10+
# Ignore changes to go.mod caused by running go vet
11+
git checkout go.mod
12+
613
./hack/check_license.sh
714
./hack/check_error_log_msg_format.sh
815

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

0 commit comments

Comments
 (0)