From 7b0c383f8cbc6fb0bc0c44c86cd7b29100efbe8d Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Mon, 28 Apr 2025 12:53:46 -0300 Subject: [PATCH] Revert "make mod-check: run in sub-modules, GOPROXY=direct" This reverts commit d7d9e2d24961fb2fe00c6613fabe6a945645ef03. --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 798596d1..70ca5a06 100644 --- a/Makefile +++ b/Makefile @@ -135,11 +135,8 @@ mod-tidy: mod-check: @$(call print, "Checking modules.") - 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 + $(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 sqlc: @$(call print, "Generating sql models and queries in Go")