File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -323,9 +323,10 @@ ko-kops-utils-cp-push:
323323gomod :
324324 go mod tidy
325325 go mod vendor
326- cd hack; go mod tidy
327- cd tests/e2e; go mod tidy
328- cd tools/otel/traceserver; go mod tidy
326+ for dir in $$ (find . -name go.mod -not -path ' ./go.mod' -not -path ' ./vendor/*' -not -path ' */.*' | xargs -n1 dirname | sort); do \
327+ echo " go mod tidy: $$ dir" ; \
328+ ( cd " $$ dir" && go mod tidy ); \
329+ done
329330
330331.PHONY : gofmt
331332gofmt :
Original file line number Diff line number Diff line change @@ -24,7 +24,9 @@ cd "${KOPS_ROOT}"
2424
2525make gomod
2626
27- changes=$( git status --porcelain go.mod go.sum vendor/ tests/e2e/go.mod tests/e2e/go.sum || true)
27+ # Check every module's go.mod/go.sum plus the vendored tree, excluding hidden directories
28+ # that aren't part of the source (e.g. .claude worktrees, .idea).
29+ changes=$( git status --porcelain -- ' *go.mod' ' *go.sum' vendor/ ' :(exclude,glob)**/.*/**' || true)
2830if [ -n " ${changes} " ]; then
2931 echo " ERROR: go modules are not up to date; please run: make gomod"
3032 echo " changed files:"
You can’t perform that action at this time.
0 commit comments