Add another dependency back; Try to make installing go more idempotent

This commit is contained in:
Tyler Tidman 2016-01-17 12:40:12 -05:00
parent 24cf4a485e
commit 1356885894
1 changed files with 5 additions and 3 deletions

8
Vagrantfile vendored
View File

@ -10,8 +10,10 @@ GOROOT="${UNTARPATH}/go"
GOPATH="${UNTARPATH}/gopath"
# Install Go
sudo wget --progress=bar:force --output-document - ${TARBALL} |\
tar xfz - -C ${UNTARPATH}
if [ ! -d ${GOROOT} ]; then
sudo wget --progress=bar:force --output-document - ${TARBALL} |\
tar xfz - -C ${UNTARPATH}
fi
# Setup the GOPATH
sudo mkdir -p ${GOPATH}
@ -28,7 +30,7 @@ sudo chown -R vagrant:vagrant ${GOPATH}
# Install some other stuff we need
sudo apt-get update
sudo apt-get install -y curl git mercurial bzr zip
sudo apt-get install -y curl make git mercurial bzr zip
SCRIPT
Vagrant.configure(2) do |config|