From 5f3d19db381c437227bcf0fb4648d39d1950d1db Mon Sep 17 00:00:00 2001 From: Emil Hessman Date: Sat, 17 Jan 2015 08:55:52 +0100 Subject: [PATCH 1/2] Makefile: update dependencies Prevent build failures which may occur when dependencies is not up to date by updating them with the go get -u flag. Add the go get -f flag as well, to override the check that each package has been checked out from the repo implied by its import path. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 21b4b6a49..84e4949e4 100644 --- a/Makefile +++ b/Makefile @@ -13,8 +13,8 @@ cov: deps: @echo "--> Installing build dependencies" - @go get -d -v ./... - @echo $(DEPS) | xargs -n1 go get -d + @go get -d -f -u -v ./... + @echo $(DEPS) | xargs -n1 go get -d -f -u test: deps ./scripts/verify_no_uuid.sh From f53c509136d1bc8060fe4fbbc8dd4c9d01a23cf1 Mon Sep 17 00:00:00 2001 From: Emil Hessman Date: Sat, 17 Jan 2015 09:14:34 +0100 Subject: [PATCH 2/2] README: go get -f requires Go 1.4+ --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 551aebb16..3b7cdf0b2 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ http://www.consul.io/docs ## Developing Consul If you wish to work on Consul itself, you'll first need [Go](http://golang.org) -installed (version 1.2+ is _required_). Make sure you have Go properly installed, +installed (version 1.4+ is _required_). Make sure you have Go properly installed, including setting up your [GOPATH](http://golang.org/doc/code.html#GOPATH). Next, clone this repository into `$GOPATH/src/github.com/hashicorp/consul` and