Skip to content

Commit

Permalink
Allow git commands in Vagrantfile
Browse files Browse the repository at this point in the history
Due to a git CVE, we need to mark /vagrant as a "safe" directory
otherwise building containerd inside Vagrant fails with git command
failures.

Signed-off-by: Phil Estes <estesp@amazon.com>
  • Loading branch information
estesp committed May 12, 2022
1 parent bee37b0 commit 06bdfeb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Vagrantfile
Expand Up @@ -101,6 +101,7 @@ EOF
GOPATH=\\$HOME/go
PATH=\\$GOPATH/bin:\\$PATH
export GOPATH PATH
git config --global --add safe.directory /vagrant
EOF
source /etc/profile.d/sh.local
SHELL
Expand Down

0 comments on commit 06bdfeb

Please sign in to comment.