Update GOPATH usage in Vagrantfile

I think there is a missing escape in the Vagrantfile. Inside the VM I had to fix the /etc/profile.d/gopath.sh because it's contents were:

```
export GOPATH="/opt/gopath"
export PATH="/opt/go/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
```

BTW having a way to spin up a dev VM so easily made it a breeze to get hacking on Terraform! Great idea!
This commit is contained in:
Jon-Erik Schneiderhan 2015-04-17 09:39:31 -04:00
parent 66edd78e64
commit 2515f44717
1 changed files with 1 additions and 1 deletions

2
Vagrantfile vendored
View File

@ -15,7 +15,7 @@ cd /opt/go/src && ./all.bash
mkdir -p /opt/gopath
cat <<EOF >/etc/profile.d/gopath.sh
export GOPATH="/opt/gopath"
export PATH="/opt/go/bin:$GOPATH/bin:\$PATH"
export PATH="/opt/go/bin:\$GOPATH/bin:\$PATH"
EOF
# Make sure the GOPATH is usable by vagrant