Drop the SRCROOT variable
This commit is contained in:
parent
9b86b0303c
commit
27c08145bf
|
@ -5,13 +5,11 @@
|
||||||
VAGRANTFILE_API_VERSION = "2"
|
VAGRANTFILE_API_VERSION = "2"
|
||||||
|
|
||||||
$script = <<SCRIPT
|
$script = <<SCRIPT
|
||||||
SRCROOT="/opt/go"
|
|
||||||
|
|
||||||
# Install Go and prerequisites
|
# Install Go and prerequisites
|
||||||
apt-get -qq update
|
apt-get -qq update
|
||||||
apt-get install -qq build-essential curl git-core libpcre3-dev mercurial pkg-config zip
|
apt-get install -qq build-essential curl git-core libpcre3-dev mercurial pkg-config zip
|
||||||
hg clone -u release https://code.google.com/p/go ${SRCROOT}
|
hg clone -u release https://code.google.com/p/go /opt/go
|
||||||
cd ${SRCROOT}/src && ./all.bash
|
cd /opt/go/src && ./all.bash
|
||||||
|
|
||||||
# Setup the GOPATH
|
# Setup the GOPATH
|
||||||
mkdir -p /opt/gopath
|
mkdir -p /opt/gopath
|
||||||
|
@ -21,7 +19,7 @@ export PATH="/opt/go/bin:\$GOPATH/bin:\$PATH"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Make sure the GOPATH is usable by vagrant
|
# Make sure the GOPATH is usable by vagrant
|
||||||
chown -R vagrant:vagrant $SRCROOT
|
chown -R vagrant:vagrant /opt/go
|
||||||
chown -R vagrant:vagrant /opt/gopath
|
chown -R vagrant:vagrant /opt/gopath
|
||||||
SCRIPT
|
SCRIPT
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue