I just found a similar issue. On my case the failure is because I am installing a python package from folder as root, but the local folder (a git repo) is owned by my regular user.
Below fails: sudo pip install -e .
Below doesn't fails: pip install -e .
The root cause of the problem looks like related with the fix of following security fix: https://launchpad.net/bugs/cve/CVE-2022-24765
The workaround for this issue for has been executing below command first: sudo git config --global --add safe.directory /path/to/my/directory
I just found a similar issue. On my case the failure is because I am installing a python package from folder as root, but the local folder (a git repo) is owned by my regular user.
Below fails:
sudo pip install -e .
Below doesn't fails:
pip install -e .
The root cause of the problem looks like related with the fix of following security fix: /launchpad. net/bugs/ cve/CVE- 2022-24765
https:/
The workaround for this issue for has been executing below command first: my/directory
sudo git config --global --add safe.directory /path/to/