From 7c741d6f7e3abf16dfe9aa9aa8e95dfad202fc67 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Thu, 25 Jun 2015 16:42:53 +0100 Subject: [PATCH] Extend 'go get' to tests The `-t` flag asks Go to fetch anything required for tests, which is more necessary now we have added testify. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5031dede..91cdbeb1 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ update: $(EXES) go get -u -f -v -tags -netgo $(addprefix ./,$(dir $(EXES))) $(WEAVER_EXE) $(WEAVEDNS_EXE) $(WEAVEPROXY_EXE) $(NETCHECK_EXE): common/*.go common/*/*.go net/*.go - go get -tags netgo ./$(@D) + go get -t -tags netgo ./$(@D) go build -ldflags "-extldflags \"-static\" -X main.version $(WEAVE_VERSION)" -tags netgo -o $@ ./$(@D) @strings $@ | grep cgo_stub\\\.go >/dev/null || { \ rm $@; \