From 4dd3136ed2615a00e6255f4a946846deb602b668 Mon Sep 17 00:00:00 2001 From: Sander van Harmelen Date: Sun, 21 Dec 2014 14:41:09 +0100 Subject: [PATCH] Update Makefile for use with Go 1.4 `go get -u` now checks that remote repo paths match the ones predicted by the import paths. So if working on TF from a forked repo, you cannot use `updatedeps` as `go get` will complain about the differences between the import and the path to your fork. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4ab79833c9..0028f6fcd0 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,11 @@ testrace: config/y.go TF_ACC= go test -race $(TEST) $(TESTARGS) updatedeps: config/y.go - go get -u -v ./... + @if [ $(shell go version | cut -f3 -d" " | cut -f2 -d.) -lt 4 ]; then \ + go get -u -v ./...; \ + else \ + go get -f -u -v ./...; \ + fi config/y.go: config/expr.y cd config/ && \