Sitelet https://github.com/kubernetes/kops/pull/18405/files
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,10 @@ ko-kops-utils-cp-push:
gomod:
go mod tidy
go mod vendor
cd hack; go mod tidy
cd tests/e2e; go mod tidy
cd tools/otel/traceserver; go mod tidy
for dir in $$(find . -name go.mod -not -path './go.mod' -not -path './vendor/*' -not -path '*/.*' | xargs -n1 dirname | sort); do \
echo "go mod tidy: $$dir"; \
( cd "$$dir" && go mod tidy ); \
done

.PHONY: gofmt
gofmt:
Expand Down
4 changes: 3 additions & 1 deletion hack/verify-gomod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ cd "${KOPS_ROOT}"

make gomod

changes=$(git status --porcelain go.mod go.sum vendor/ tests/e2e/go.mod tests/e2e/go.sum || true)
# Check every module's go.mod/go.sum plus the vendored tree, excluding hidden directories
# that aren't part of the source (e.g. .claude worktrees, .idea).
changes=$(git status --porcelain -- '*go.mod' '*go.sum' vendor/ ':(exclude,glob)**/.*/**' || true)
if [ -n "${changes}" ]; then
echo "ERROR: go modules are not up to date; please run: make gomod"
echo "changed files:"
Expand Down
Loading