From c2ed40c71c41f2600643a01223c9cc77f1ff0f77 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Fri, 19 Dec 2014 14:17:25 +0100 Subject: [PATCH] Update Go download path and enable curl redirects. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a09c6e7..09fdc0a 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,7 @@ endif export GOARCH = $(subst x86_64,amd64,$(ARCH)) export GOPKG = go$(GO_VERSION).$(GOOS)-$(GOARCH)$(RELEASE_SUFFIX).tar.gz +export GOURL = http://golang.org/dl export GOROOT = $(BUILD_PATH)/root/go export GOPATH = $(BUILD_PATH)/root/gopath export GOCC = $(GOROOT)/bin/go @@ -57,7 +58,7 @@ $(BUILD_PATH)/root: $(BUILD_PATH) mkdir -vp $(BUILD_PATH)/root $(BUILD_PATH)/cache/$(GOPKG): $(BUILD_PATH)/cache - curl -o $@ http://go.googlecode.com/files/$(GOPKG) + curl -o $@ -L $(GOURL)/$(GOPKG) $(GOCC): $(BUILD_PATH)/root $(BUILD_PATH)/cache/$(GOPKG) tar -C $(BUILD_PATH)/root -xzf $(BUILD_PATH)/cache/$(GOPKG)