From 25900162f63a00055be7c9e5c0f30fcdd4e47d6d Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 27 May 2019 00:35:46 +0300 Subject: [PATCH] Makefile: add `-mod=vendor` to `go test`, so tests use external deps from `vendor` folder --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 66afa5edb..a1d3875ee 100644 --- a/Makefile +++ b/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/...