#!/usr/bin/env bash

set -ex

GOROOT=/usr/local/go
GO_ARCHIVE_URL=https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz
GO_ARCHIVE=$(basename $GO_ARCHIVE_URL)

echo "Downloading go..."
mkdir -p $(dirname $GOROOT)
wget -q $GO_ARCHIVE_URL
tar xf $GO_ARCHIVE -C $(dirname $GOROOT)
chmod -R a+w $GOROOT

(
  cd $GOROOT/src
  sudo GOOS=darwin GOARCH=amd64 ./make.bash --no-clean
)

export GOROOT
export GOPATH=$GOROOT
export PATH=$GOROOT/bin:$PATH

#!/usr/bin/env bash

set -ex

GOROOT=/usr/local/go
GO_ARCHIVE_URL=https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz
GO_ARCHIVE=$(basename $GO_ARCHIVE_URL)

echo "Downloading go..."
mkdir -p $(dirname $GOROOT)
wget -q $GO_ARCHIVE_URL
tar xf $GO_ARCHIVE -C $(dirname $GOROOT)
chmod -R a+w $GOROOT

(
  cd $GOROOT/src
  sudo GOOS=darwin GOARCH=amd64 ./make.bash --no-clean
)

export GOROOT
export GOPATH=$GOROOT
export PATH=$GOROOT/bin:$PATH

Install go 1.5.1 in bosh/init docker
Install go 1.5.1 in bosh/init docker

Signed-off-by: Yulia Gaponenko <d7604262e9d9d4ab94e4733c971152f424a52fb1@gmail.com>
