improve go.mod and go.sum consistency checks (#3210)

Signed-off-by: Diogenes Fernandes <diofeher@gmail.com>
This commit is contained in:
Diógenes Fernandes
2025-08-29 13:58:05 -03:00
committed by GitHub
parent 1099db8569
commit a1c8b3163a

View File

@@ -149,7 +149,7 @@ jobs:
- name: "go.mod and go.sum consistency check"
run: |
go mod tidy
if [[ -n "$(git status --porcelain)" ]]; then
if [[ -n "$(git status --porcelain go.mod go.sum)" ]]; then
echo >&2 "ERROR: go.mod/go.sum are not up-to-date. Run 'go mod tidy' and then commit the updated files."
exit 1
fi