Fix verify-gomod.sh to watch test/go.mod

make gomod tidies the test module, but verification listed the
nonexistent tests/e2e/go.{mod,sum} paths. Watch test/go.mod and
test/go.sum instead, and pass -- before git pathspecs.
This commit is contained in:
Ciprian Hacman
2026-08-23 14:50:54 +03:00
parent 22ff7560e5
commit d71e1c751a
+1 -1
View File
@@ -19,7 +19,7 @@ set -o nounset
set -o pipefail
make gomod
changes=$(git status --porcelain go.mod go.sum vendor/ tests/e2e/go.mod tests/e2e/go.sum || true)
changes=$(git status --porcelain -- go.mod go.sum vendor/ test/go.mod test/go.sum || true)
if [ -n "${changes}" ]; then
echo "ERROR: go modules are not up to date; please run: make gomod"
echo "changed files:"