Skip to content

Commit

Permalink
fix: extract project as current user on linux
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 24, 2022
1 parent dff6925 commit 199f205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cibuildwheel/docker_container.py
Original file line number Diff line number Diff line change
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 199f205

Please sign in to comment.