Skip to content

Commit 7b0c383

Browse files
committed
Revert "make mod-check: run in sub-modules, GOPROXY=direct"
This reverts commit d7d9e2d.
1 parent 64e6bbd commit 7b0c383

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Makefile

+2-5
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,8 @@ mod-tidy:
135135

136136
mod-check:
137137
@$(call print, "Checking modules.")
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
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
143140

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

0 commit comments

Comments
 (0)