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:
parent
7047c5f0ca
commit
ff0647bc6c
3
Makefile
3
Makefile
|
@ -15,8 +15,7 @@ format:
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@echo "$(OK_COLOR)==> Testing Packer...$(NO_COLOR)"
|
@echo "$(OK_COLOR)==> Testing Packer...$(NO_COLOR)"
|
||||||
@go list -f '{{range .TestImports}}{{.}}\
|
@go list -f '{{range .TestImports}}{{.}} {{end}}' ./... | xargs -n1 go get -d
|
||||||
{{end}}' ./... | xargs -n1 go get -d
|
|
||||||
go test ./...
|
go test ./...
|
||||||
|
|
||||||
.PHONY: all format test
|
.PHONY: all format test
|
||||||
|
|
Loading…
Reference in New Issue