Update Vagrant file to use Go 1.5.1

This commit is contained in:
clint shryock 2015-11-23 11:11:55 -06:00
parent c524682f2d
commit 7e0cbb4da7
1 changed files with 3 additions and 2 deletions

5
Vagrantfile vendored
View File

@ -5,6 +5,7 @@
VAGRANTFILE_API_VERSION = "2" VAGRANTFILE_API_VERSION = "2"
$script = <<SCRIPT $script = <<SCRIPT
GOVERSION="1.5.1"
SRCROOT="/opt/go" SRCROOT="/opt/go"
SRCPATH="/opt/gopath" SRCPATH="/opt/gopath"
@ -18,8 +19,8 @@ sudo apt-get install -y build-essential curl git-core libpcre3-dev mercurial pkg
# Install Go # Install Go
cd /tmp cd /tmp
wget -q https://storage.googleapis.com/golang/go1.4.2.linux-${ARCH}.tar.gz wget --quiet https://storage.googleapis.com/golang/go${GOVERSION}.linux-${ARCH}.tar.gz
tar -xf go1.4.2.linux-${ARCH}.tar.gz tar -xvf go${GOVERSION}.linux-${ARCH}.tar.gz
sudo mv go $SRCROOT sudo mv go $SRCROOT
sudo chmod 775 $SRCROOT sudo chmod 775 $SRCROOT
sudo chown vagrant:vagrant $SRCROOT sudo chown vagrant:vagrant $SRCROOT