From d7d9e2d24961fb2fe00c6613fabe6a945645ef03 Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Wed, 23 Apr 2025 15:34:47 -0300 Subject: [PATCH] make mod-check: run in sub-modules, GOPROXY=direct GOPROXY=direct is needed to capture the issue with tags force-pushes. --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 70ca5a06..798596d1 100644 --- a/Makefile +++ b/Makefile @@ -135,8 +135,11 @@ mod-tidy: mod-check: @$(call print, "Checking modules.") - $(GOMOD) tidy - if test -n "$$(git status | grep -e "go.mod\|go.sum")"; then echo "Running go mod tidy changes go.mod/go.sum"; git status; git diff; exit 1; fi + GOPROXY=direct $(GOMOD) tidy + cd swapserverrpc/ && GOPROXY=direct $(GOMOD) tidy + cd looprpc/ && GOPROXY=direct $(GOMOD) tidy + cd tools/ && GOPROXY=direct $(GOMOD) tidy + if test -n "$$(git status --porcelain)"; then echo "Running go mod tidy changes go.mod/go.sum"; git status; git diff; exit 1; fi sqlc: @$(call print, "Generating sql models and queries in Go")