Skip to content

Commit

Permalink
fix: extract project as current user on linux (#1095)
Browse files Browse the repository at this point in the history
This allows git to work properly, e.g., `versioneer`/`setuptools_scm` with latest git versions.
c.f. pypa/manylinux#1309
  • Loading branch information
mayeut committed Apr 26, 2022
1 parent 986a50f commit de07370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cibuildwheel/docker_container.py
Expand Up @@ -122,7 +122,7 @@ def copy_into(self, from_path: Path, to_path: PurePath) -> None:
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,
Expand Down

0 comments on commit de07370

Please sign in to comment.