mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
Makefile: add -mod=vendor
to go test
, so tests use external deps from vendor
folder
This commit is contained in:
parent
16afcd6aff
commit
25900162f6
1 changed files with 4 additions and 4 deletions
8
Makefile
8
Makefile
|
@ -51,12 +51,12 @@ install-errcheck:
|
|||
which errcheck || GO111MODULE=off go get -u github.com/kisielk/errcheck
|
||||
|
||||
test:
|
||||
GO111MODULE=on go test ./lib/...
|
||||
GO111MODULE=on go test ./app/...
|
||||
GO111MODULE=on go test -mod=vendor ./lib/...
|
||||
GO111MODULE=on go test -mod=vendor ./app/...
|
||||
|
||||
benchmark:
|
||||
GO111MODULE=on go test -bench=. ./lib/...
|
||||
GO111MODULE=on go test -bench=. ./app/...
|
||||
GO111MODULE=on go test -mod=vendor -bench=. ./lib/...
|
||||
GO111MODULE=on go test -mod=vendor -bench=. ./app/...
|
||||
|
||||
vendor-update:
|
||||
GO111MODULE=on go get -u ./lib/...
|
||||
|
|
Loading…
Reference in a new issue