mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-08-23 22:26:27 +00:00
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:
@@ -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:"
|
||||
|
||||
Reference in New Issue
Block a user