mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-09 00:32:09 -04:00
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
1 changed files with 1 additions and 2 deletions
3
Makefile
3
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue