Skip to content

Commit

Permalink
Fixes the Vagrantfile on VMWare.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Phillips committed Jun 16, 2015
1 parent 3090bd9 commit df55666
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ sudo chown vagrant:vagrant $SRCROOT
# Setup the GOPATH; even though the shared folder spec gives the consul
# directory the right user/group, we need to set it properly on the
# parent path to allow subsequent "go get" commands to work.
# parent path to allow subsequent "go get" commands to work. We can't do
# normal -R here because VMWare complains if we try to update the shared
# folder permissions, so we just update the folders that matter.
sudo mkdir -p $SRCPATH
sudo chown -R vagrant:vagrant $SRCPATH
find /opt/gopath -type d -maxdepth 3 | xargs sudo chown vagrant:vagrant
cat <<EOF >/tmp/gopath.sh
export GOPATH="$SRCPATH"
Expand Down

0 comments on commit df55666

Please sign in to comment.