Makefile: fix test target by setting -mod=mod

This commit is contained in:
Michael Stapelberg 2022-06-12 23:02:45 +02:00
parent b1e9f5824b
commit b1ba13419d

View File

@ -43,8 +43,8 @@ recover: #test
test: test:
# simulate recover (quick, for early for feedback) # simulate recover (quick, for early for feedback)
go build ${PKGS} github.com/rtr7/tools/cmd/... go build -mod=mod ${PKGS} github.com/rtr7/tools/cmd/...
go test -count=1 -v -race github.com/rtr7/router7/internal/... go test -mod=mod -count=1 -v -race github.com/rtr7/router7/internal/...
# integration tests # integration tests
${SUDO} $(shell go env GOROOT)/bin/go test -count=1 -v -race github.com/rtr7/router7/... ${SUDO} $(shell go env GOROOT)/bin/go test -count=1 -v -race github.com/rtr7/router7/...