Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .ci.gofmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fi
go run ./_readme-gofmt/main.go

go generate ./...
if [ -n "$(git status -s -uno)" ]; then
if [ -n "$(git status --short)" ]; then
echo "Go generate output does not match commit."
echo "Did you forget to run go generate ./... ?"
exit 1
Expand Down
3 changes: 2 additions & 1 deletion .ci.gogenerate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ if [[ -z "$(go env GOMOD)" ]]; then
fi

go generate ./...
if [ -n "$(git diff)" ]; then
if [ -n "$(git status --short)" ]; then
echo "Go generate had not been run"
git status --short
git diff
exit 1
fi