-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hack/tests/sanity-check.sh: ignore go.mod changes caused by go vet
- Loading branch information
1 parent
2b8846c
commit d7edd9c
Showing
1 changed file
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |