Skip to content

Commit 683da1c

Browse files
committed
tests: print diff if changed are detected after dev/format-gomod
1 parent 6effc6e commit 683da1c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/main.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ jobs:
5252
- run: |
5353
changes=$(git status --porcelain)
5454
if [[ -n "${changes}" ]]; then
55-
echo "::error Changes detected from go mod tidy:"
55+
echo "::error Changes detected from dev/format-gomod:"
56+
echo "::error (You may need to run go clean -cache -modcache)"
57+
git diff | head -n60
5658
echo "${changes}"
5759
exit 1
5860
fi

0 commit comments

Comments
 (0)