Add `-tags netgo`
so that we can still use `-race` and also get around an issue with the
cgo net stack on _a certain flavour of Linux_.
@@ -41,7 +41,7 @@ CROSSBUILD_BINARIES := \
%-coverage.coverprofile:
$(GO) test -v -covermode=count -coverprofile=$@ \
- -x -ldflags "$(GOBUILD_LDFLAGS)" \
+ -tags netgo -x -ldflags "$(GOBUILD_LDFLAGS)" \
$(PACKAGE)/$(subst -,/,$(subst root,,$(subst -coverage.coverprofile,,$@)))
.PHONY: %
@@ -56,7 +56,7 @@ test: deps lintall build fmtpolice test-no-cover coverage.html
.PHONY: test-no-cover
test-no-cover:
- $(GO) test -v -race -x -ldflags "$(GOBUILD_LDFLAGS)" $(ALL_PACKAGES)
+ $(GO) test -v -race -tags netgo -x -ldflags "$(GOBUILD_LDFLAGS)" $(ALL_PACKAGES)
coverage.html: coverage.coverprofile
$(GO) tool cover -html=$^ -o $@
@@ -67,7 +67,7 @@ coverage.coverprofile: $(COVERPROFILES)
.PHONY: build
build: deps
- $(GO) install -x -ldflags "$(GOBUILD_LDFLAGS)" $(ALL_PACKAGES)
+ $(GO) install -tags netgo -x -ldflags "$(GOBUILD_LDFLAGS)" $(ALL_PACKAGES)
.PHONY: crossbuild
crossbuild: deps $(CROSSBUILD_BINARIES)
