Makes the Makefile pull the tools it needs on the first run.

This commit is contained in:
James Phillips 2015-10-26 16:00:51 -07:00
parent 009a2b3b50
commit 9d02372f62
1 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
GOTOOLS = github.com/mitchellh/gox golang.org/x/tools/cmd/stringer
DEPS = $(shell go list -f '{{range .TestImports}}{{.}} {{end}}' ./...) DEPS = $(shell go list -f '{{range .TestImports}}{{.}} {{end}}' ./...)
PACKAGES = $(shell go list ./...) PACKAGES = $(shell go list ./...)
VETARGS?=-asmdecl -atomic -bool -buildtags -copylocks -methods \ VETARGS?=-asmdecl -atomic -bool -buildtags -copylocks -methods \
@ -26,11 +27,11 @@ cov:
deps: deps:
@echo "--> Installing build dependencies" @echo "--> Installing build dependencies"
@go get -v $(GOTOOLS)
@go get -d -v ./... $(DEPS) @go get -d -v ./... $(DEPS)
updatedeps: deps updatedeps: deps
go get -u github.com/mitchellh/gox go get -u -v $(GOTOOLS)
go get -u golang.org/x/tools/cmd/stringer
go list ./... \ go list ./... \
| xargs go list -f '{{join .Deps "\n"}}' \ | xargs go list -f '{{join .Deps "\n"}}' \
| grep -v github.com/hashicorp/consul \ | grep -v github.com/hashicorp/consul \