-
-
Notifications
You must be signed in to change notification settings - Fork 228
Closed
Labels
Description
Hi. Today I have noticed that editable installation of packages from root stopped working. It is because of git version with fix for CVE-2022-24765 has been released and delivered.
It writes that LookupError: setuptools-scm was unable to detect version for ....
Investigation and adding dumping resulted in pinpointing the error to .git.from_potential_worktree, where git errors with
fatal: unsafe repository ('...' is owned by someone else)
To add an exception for this directory, call:
git config --global --add safe.directory
.
- I know that editable installs from root are insecure and that just adding files to such dirs allows privelege escallation.
- I know that
pipmust not execute wheel building elevated even if called from root, it should drop its rights for the time it builds wheel, and it is a flaw inpipit doesn't do that.
But those are not flaws in setuptools_scm. Let's concentrate on the flaws on setuptools_scm related to the issue.
njzjz, carlodri and smurfixpelson and carlodri