From d70c70aab0b586f91bd4061decdd0c9294338fe0 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Tue, 16 Jun 2015 16:59:12 -0700 Subject: [PATCH] Fixes the Vagrantfile on VMWare. --- Vagrantfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index aee0ad027..f21de15fe 100755 --- a/Vagrantfile +++ b/Vagrantfile @@ -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 </tmp/gopath.sh export GOPATH="$SRCPATH"