From 04c2c3845c66c2438edc270933e772123762854e Mon Sep 17 00:00:00 2001 From: Elie Date: Wed, 31 Mar 2021 16:35:46 +0200 Subject: [PATCH] Prevent go test to update go.mod --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5d4d6b20..227dd59f 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ release: .PHONY: test test: deps - $(GOTEST) --format testname --junitfile unit-tests.xml -- -coverprofile=cover.out.tmp -coverpkg=.,./pkg/... ./... + $(GOTEST) --format testname --junitfile unit-tests.xml -- -mod=readonly -coverprofile=cover.out.tmp -coverpkg=.,./pkg/... ./... cat cover.out.tmp | grep -v "mock_" > cover.out .PHONY: coverage