diff --git a/Makefile b/Makefile index 1654848020f..e366fd698cb 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ -GO=GO15VENDOREXPERIMENT="1" go +GO=GO15VENDOREXPERIMENT="1" CGO_ENABLED=0 go +GOTEST=GO15VENDOREXPERIMENT="1" CGO_ENABLED=1 go test # go race detector requires cgo PACKAGES := $$(go list ./...| grep -vE 'vendor|pd-server') @@ -38,7 +39,7 @@ install: test: rm -rf vendor && ln -s _vendor/vendor vendor - $(GO) test --race $(PACKAGES) + $(GOTEST) --race $(PACKAGES) rm -rf vendor check: