Makefile: fix test target by setting -mod=mod
This commit is contained in:
parent
b1e9f5824b
commit
b1ba13419d
4
Makefile
4
Makefile
@ -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/...
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user