@@ -178,7 +178,7 @@ all: $(GO_CMD_NAMES)
178178.PHONY : $(GO_CMD_NAMES ) $(GO_CMD_PATHS ) $(GO_CMD_BUILDS )
179179$(GO_CMD_BUILDS ) : generate
180180$(GO_CMD_BUILDS ) : # #@build Build any Go project from cmd folder
181- $(BUILD_ENV ) go build -mod=vendor - v \
181+ $(BUILD_ENV ) go build -v \
182182 -tags ' $(BUILD_TAGS)' $(BUILD_FLAGS ) \
183183 -o ./$@ ./cmd/$(notdir $@ )
184184 @echo " Compilation done."
@@ -214,7 +214,7 @@ status-backend: build/bin/status-backend
214214run-status-backend : PORT ?= 0
215215run-status-backend : generate
216216run-status-backend : # #@run Start status-backend server listening to localhost:PORT
217- go run ./cmd/status-backend --address localhost:${PORT}
217+ go run -mod=mod ./cmd/status-backend --address localhost:${PORT}
218218
219219push-notification-server : # #@build Build push-notification-server
220220push-notification-server : build/bin/push-notification-server
@@ -233,7 +233,7 @@ status-go-deps:
233233statusgo-c-bindings :
234234 # # cmd/library/README.md explains the magic incantation behind this
235235 mkdir -p build/bin/statusgo-lib
236- go run cmd/library/* .go > build/bin/statusgo-lib/main.go
236+ go run -mod=mod cmd/library/* .go > build/bin/statusgo-lib/main.go
237237
238238statusgo-library : generate
239239statusgo-library : statusgo-c-bindings $(LIBWAKU ) # #@cross-compile Build status-go as static library for current platform
@@ -316,9 +316,9 @@ generate: ##@ Run generate for all given packages using go-generate-fast, fallb
316316generate-contracts :
317317 go generate ./contracts
318318download-tokens :
319- go run ./services/wallet/token/token-lists/default-lists/downloader/main.go
319+ go run -mod=mod ./services/wallet/token/token-lists/default-lists/downloader/main.go
320320analyze-token-stores :
321- go run ./services/wallet/token/token-lists/analyzer/main.go
321+ go run -mod=mod ./services/wallet/token/token-lists/analyzer/main.go
322322
323323prepare-release : clean-release
324324 mkdir -p $(RELEASE_DIR )
@@ -388,7 +388,7 @@ benchmark:
388388
389389lint-panics : export GOFLAGS ?= -tags='$(BUILD_TAGS ) '
390390lint-panics : generate
391- go run ./cmd/lint-panics -root=" $( PWD) " -skip=./cmd -test=false ./...
391+ go run -mod=mod ./cmd/lint-panics -root=" $( PWD) " -skip=./cmd -test=false ./...
392392
393393lint : generate lint-panics
394394 golangci-lint --build-tags ' $(BUILD_TAGS)' run ./...
@@ -405,12 +405,6 @@ deep-clean: clean git-clean
405405tidy :
406406 go mod tidy
407407
408- vendor : generate
409- go mod tidy
410- go mod vendor
411- go tool modvendor -copy=" **/*.c **/*.h" -v
412- .PHONY : vendor
413-
414408migration : DEFAULT_MIGRATION_PATH := appdatabase/migrations/sql
415409migration :
416410 touch $(DEFAULT_MIGRATION_PATH ) /$$(date '+%s' ) _$(D ) .up.sql
0 commit comments