Skip to content

Commit d7d9e2d

Browse files
committed
make mod-check: run in sub-modules, GOPROXY=direct
GOPROXY=direct is needed to capture the issue with tags force-pushes.
1 parent 1480536 commit d7d9e2d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,11 @@ mod-tidy:
135135

136136
mod-check:
137137
@$(call print, "Checking modules.")
138-
$(GOMOD) tidy
139-
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
138+
GOPROXY=direct $(GOMOD) tidy
139+
cd swapserverrpc/ && GOPROXY=direct $(GOMOD) tidy
140+
cd looprpc/ && GOPROXY=direct $(GOMOD) tidy
141+
cd tools/ && GOPROXY=direct $(GOMOD) tidy
142+
if test -n "$$(git status --porcelain)"; then echo "Running go mod tidy changes go.mod/go.sum"; git status; git diff; exit 1; fi
140143

141144
sqlc:
142145
@$(call print, "Generating sql models and queries in Go")

0 commit comments

Comments
 (0)