fix: extract project as current user on linux (#1095)

This allows git to work properly, e.g., `versioneer`/`setuptools_scm` with latest git versions.
c.f. https://github.com/pypa/manylinux/issues/1309
This commit is contained in:
Matthieu Darbois
2022-04-26 13:29:00 -04:00
committed by GitHub
parent 986a50f8a0
commit de07370930
+1 -1
View File
@@ -122,7 +122,7 @@ class DockerContainer:
if from_path.is_dir():
self.call(["mkdir", "-p", to_path])
subprocess.run(
f"tar cf - . | docker exec -i {self.name} tar -xC {shell_quote(to_path)} -f -",
f"tar cf - . | docker exec -i {self.name} tar --no-same-owner -xC {shell_quote(to_path)} -f -",
shell=True,
check=True,
cwd=from_path,