Skip to content

Commit 06bdfeb

Browse files
committed
Allow git commands in Vagrantfile
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 <[email protected]>
1 parent bee37b0 commit 06bdfeb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Vagrantfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ EOF
101101
GOPATH=\\$HOME/go
102102
PATH=\\$GOPATH/bin:\\$PATH
103103
export GOPATH PATH
104+
git config --global --add safe.directory /vagrant
104105
EOF
105106
source /etc/profile.d/sh.local
106107
SHELL

0 commit comments

Comments
 (0)