Skip to content

Commit c7f429f

Browse files
authored
hack/tests/sanity-check.sh: fail on changed go.mod and go.sum (#2098)
1 parent 72a86cd commit c7f429f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

hack/tests/sanity-check.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
#!/usr/bin/env bash
22
set -ex
33

4-
# Make sure repo is in clean state before running go tools
5-
git diff --exit-code
6-
74
go mod tidy
85
go vet ./...
96
go fmt ./...
107

118
./hack/check_license.sh
129
./hack/check_error_log_msg_format.sh
1310

14-
# Ignore changes to go.mod and go.sum
15-
git checkout go.mod go.sum
16-
1711
# Make sure repo is still in a clean state.
1812
git diff --exit-code

0 commit comments

Comments
 (0)