From b5ed2e3542130fc95de07cfc916e00a1de3aed99 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Wed, 18 Mar 2015 08:27:00 -0700 Subject: [PATCH] Setup up golang for netgo --- scripts/bootstrap | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/bootstrap b/scripts/bootstrap index fa727182..4e83aec6 100755 --- a/scripts/bootstrap +++ b/scripts/bootstrap @@ -8,5 +8,10 @@ apt-get update apt-get install -y curl rsync build-essential syslinux xorriso libblkid-dev libmount-dev libselinux1-dev if [ ! -d /usr/local/go ]; then - curl -sL https://storage.googleapis.com/golang/go1.4.1.linux-amd64.tar.gz | tar xvzf - -C /usr/local + GO_VERSION=1.4.2 + curl -sSL https://golang.org/dl/go${GO_VERSION}.src.tar.gz | tar -v -C /usr/local -xz + cd /usr/local/go/src && ./make.bash --no-clean 2>&1 + PATH=/usr/local/go/bin:${PATH} + go clean -i net + go install -tags netgo std fi