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.
This commit is contained in:
Eric Lathrop 2013-07-01 19:25:23 -04:00
parent 7047c5f0ca
commit ff0647bc6c
1 changed files with 1 additions and 2 deletions

View File

@ -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