We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64e6bbd commit 7b0c383Copy full SHA for 7b0c383
Makefile
@@ -135,11 +135,8 @@ mod-tidy:
135
136
mod-check:
137
@$(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
+ $(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
143
144
sqlc:
145
@$(call print, "Generating sql models and queries in Go")
0 commit comments