From ff0647bc6cdaa1031036e9c65c516338000ebfdd Mon Sep 17 00:00:00 2001 From: Eric Lathrop Date: Mon, 1 Jul 2013 19:25:23 -0400 Subject: [PATCH] Remove newline from test import paths. When running "make test" on my machine, I got many unrecognized import path errors, and the path showed a trailing "\n". Changing the go list format to remove the newline fixed these. --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5621e103f..d8d0bbc60 100644 --- a/Makefile +++ b/Makefile @@ -15,8 +15,7 @@ format: test: @echo "$(OK_COLOR)==> Testing Packer...$(NO_COLOR)" - @go list -f '{{range .TestImports}}{{.}}\ - {{end}}' ./... | xargs -n1 go get -d + @go list -f '{{range .TestImports}}{{.}} {{end}}' ./... | xargs -n1 go get -d go test ./... .PHONY: all format test