Skip to content

hack/tests/sanity-check.sh: fail on changed go.mod and go.sum #2098

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions hack/tests/sanity-check.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
#!/usr/bin/env bash
set -ex

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

go mod tidy
go vet ./...
go fmt ./...

./hack/check_license.sh
./hack/check_error_log_msg_format.sh

# Ignore changes to go.mod and go.sum
git checkout go.mod go.sum

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