Error Obtaining Vcs Status When Running Delve as Root

I am trying to run sudo dlv debug on Arch Linux and I keep getting following error:

error obtaining VCS status: exit status 128
    Use -buildvcs=false to disable VCS stamping.
exit status 1

When I remove the .git folder, sudo dlv debug runs as expected, so I assume it could be a configuration issue with git?!

1

2 Answers

I had a similar error message when debugging code opened in a remote container via vscode.

when I used git status I got a message saying the git repository is unsafe was owned by someone else. And then a message explaining to use:

git config --global --add safe.directory [your dir here]

doing this I no longer get the VCS stamping warning

4

For those coming from Google, you probably don't have the permissions to a folder. chmod user:user folder and add -R to propagate it in subfolders.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest