Skip to content

Commit 4194fde

Browse files
authored
Merge pull request #3317 from gman0/verify-go-modules-no-pager
🌱 hack/verify-go-modules.sh: don't run pager with git diff
2 parents ee3cfd3 + c7b02b3 commit 4194fde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hack/verify-go-modules.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ for dir in "${DIRS[@]}"; do
107107
echo "Verifying ${dir}"
108108

109109
if ! git diff --quiet HEAD -- go.mod go.sum; then
110-
echo "go module files are out of date"
111-
git diff HEAD -- go.mod go.sum
110+
git --no-pager diff HEAD -- go.mod go.sum
111+
echo "Error: go.mod and/or go.sum in ${dir} files have been modified, inspect and commit them before continuing" 1>&2
112112
exit 1
113113
fi
114114

0 commit comments

Comments
 (0)