Makes the Makefile pull the tools it needs on the first run.
This commit is contained in:
parent
009a2b3b50
commit
9d02372f62
5
Makefile
5
Makefile
|
@ -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 \
|
||||||
|
|
Loading…
Reference in New Issue