From de0737093069f0ebeaaaa80cba0414ce780f7740 Mon Sep 17 00:00:00 2001 From: Matthieu Darbois Date: Tue, 26 Apr 2022 19:29:00 +0200 Subject: [PATCH] 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 --- cibuildwheel/docker_container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cibuildwheel/docker_container.py b/cibuildwheel/docker_container.py index bc313a7d..8ee8e573 100644 --- a/cibuildwheel/docker_container.py +++ b/cibuildwheel/docker_container.py @@ -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,