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.
This commit is contained in:
Sander van Harmelen 2014-12-21 14:41:09 +01:00
parent b58e468033
commit 4dd3136ed2
1 changed files with 5 additions and 1 deletions

View File

@ -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/ && \