Skip to content

Commit 56c9604

Browse files
committed
Revert "Revert "make mod-check: run in sub-modules, GOPROXY=direct""
This reverts commit 7b0c383. Access to git.sr.ht/~sbinet/gg was restored, so the check now passes.
1 parent 49aef8a commit 56c9604

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)