From 49da8a49fa2d9af378457d74f1297c22cd9c2e6b Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Thu, 2 Oct 2014 16:19:56 -0600 Subject: [PATCH] Fix "go install -v . ./.git/logs/refs/heads ./.git/refs/heads ..." This happens when you name a git object (branch, tag, etc) `something_test.go`. Signed-off-by: Andrew Page --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4744c5efc..0ec995fc3 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ test: sh: docker run --rm -it --privileged -w /busybox docker/libcontainer nsinit exec sh -GO_PACKAGES = $(shell find . -not \( -wholename ./vendor -prune \) -name '*.go' -print0 | xargs -0n1 dirname | sort -u) +GO_PACKAGES = $(shell find . -not \( -wholename ./vendor -prune -o -wholename ./.git -prune \) -name '*.go' -print0 | xargs -0n1 dirname | sort -u) direct-test: go test -cover -v $(GO_PACKAGES)