@@ -170,7 +170,7 @@ all: $(GO_CMD_NAMES)
170170.PHONY : $(GO_CMD_NAMES ) $(GO_CMD_PATHS ) $(GO_CMD_BUILDS )
171171$(GO_CMD_BUILDS ) : generate $(LIBWAKU )
172172$(GO_CMD_BUILDS ) : # #@build Build any Go project from cmd folder
173- go build -mod=vendor - v \
173+ go build -v \
174174 -tags ' $(BUILD_TAGS)' $(BUILD_FLAGS ) \
175175 -o ./$@ ./cmd/$(notdir $@ )
176176 @echo " Compilation done."
@@ -191,7 +191,7 @@ status-backend: build/bin/status-backend
191191run-status-backend : PORT ?= 0
192192run-status-backend : generate
193193run-status-backend : # #@run Start status-backend server listening to localhost:PORT
194- go run ./cmd/status-backend --address localhost:${PORT}
194+ go run -mod=mod ./cmd/status-backend --address localhost:${PORT}
195195
196196push-notification-server : # #@build Build push-notification-server
197197push-notification-server : build/bin/push-notification-server
@@ -210,7 +210,7 @@ status-go-deps:
210210statusgo-c-bindings :
211211 # # cmd/library/README.md explains the magic incantation behind this
212212 mkdir -p build/bin/statusgo-lib
213- go run cmd/library/* .go > build/bin/statusgo-lib/main.go
213+ go run -mod=mod cmd/library/* .go > build/bin/statusgo-lib/main.go
214214
215215statusgo-library : generate
216216statusgo-library : statusgo-c-bindings $(LIBWAKU ) # #@cross-compile Build status-go as static library for current platform
@@ -298,9 +298,9 @@ generate: ##@ Run generate for all given packages using go-generate-fast, fallb
298298generate-contracts :
299299 go generate ./contracts
300300download-tokens :
301- go run ./services/wallet/token/token-lists/default-lists/downloader/main.go
301+ go run -mod=mod ./services/wallet/token/token-lists/default-lists/downloader/main.go
302302analyze-token-stores :
303- go run ./services/wallet/token/token-lists/analyzer/main.go
303+ go run -mod=mod ./services/wallet/token/token-lists/analyzer/main.go
304304
305305prepare-release : clean-release
306306 mkdir -p $(RELEASE_DIR )
@@ -319,11 +319,9 @@ lint-fix:
319319 -and -not -name ' messenger_handlers.go' \
320320 -and -not -name ' */mock/*' \
321321 -and -not -name ' mock.go' \
322- -and -not -wholename ' */vendor/*' \
323322 -exec goimports \
324323 -local ' github.com/ethereum/go-ethereum,github.com/status-im/status-go,github.com/status-im/markdown' \
325324 -w {} \;
326- $(MAKE ) vendor
327325
328326docker-test : # #@tests Run tests in a docker container with golang.
329327 docker run --privileged --rm -it -v " $( PWD) :$( DOCKER_TEST_WORKDIR) " -w " $( DOCKER_TEST_WORKDIR) " $(DOCKER_TEST_IMAGE ) go test ${ARGS}
@@ -350,7 +348,6 @@ test-unit-prep: export UNIT_TEST_REPORT_CODECOV ?= false
350348test-unit : test-unit-prep
351349test-unit : export UNIT_TEST_RERUN_FAILS ?= true
352350test-unit : export UNIT_TEST_PACKAGES ?= $(call sh, go list ./... | \
353- grep -v /vendor | \
354351 grep -v /t/e2e | \
355352 grep -v /t/benchmarks | \
356353 grep -v /transactions/fake | \
@@ -379,7 +376,7 @@ benchmark:
379376
380377lint-panics : export GOFLAGS ?= -tags='$(BUILD_TAGS ) '
381378lint-panics : generate
382- go run ./cmd/lint-panics -root=" $( PWD) " -skip=./cmd -test=false ./...
379+ go run -mod=mod ./cmd/lint-panics -root=" $( PWD) " -skip=./cmd -test=false ./...
383380
384381lint : generate lint-panics
385382 golangci-lint --build-tags ' $(BUILD_TAGS)' run ./...
@@ -396,12 +393,6 @@ deep-clean: clean git-clean
396393tidy :
397394 go mod tidy
398395
399- vendor : generate
400- go mod tidy
401- go mod vendor
402- go tool modvendor -copy=" **/*.c **/*.h" -v
403- .PHONY : vendor
404-
405396migration : DEFAULT_MIGRATION_PATH := appdatabase/migrations/sql
406397migration :
407398 touch $(DEFAULT_MIGRATION_PATH ) /$$(date '+%s' ) _$(D ) .up.sql
0 commit comments