Skip to content

Commit 756580b

Browse files
authored
fix: add /auditwheel_src to git safe directories (#378)
The volume bound to the manylinux/musllinux for `/auditwheel_src` uses the host uid for file ownership which is different from the uid used inside the containers. git now checks uid to allow/deny actions. This adds `/auditwheel_src` to git safe directories to allow setuptools_scm to infer auditwheel version inside the containers.
1 parent 46a7274 commit 756580b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/integration/test_manylinux.py

+2
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,7 @@ def any_manylinux_img(self, request):
712712
with tmp_docker_image(
713713
base,
714714
[
715+
'git config --global --add safe.directory "/auditwheel_src"',
715716
"pip install -U pip setuptools pytest-cov",
716717
"pip install -U -e /auditwheel_src",
717718
],
@@ -935,6 +936,7 @@ def any_manylinux_img(self, request):
935936
with tmp_docker_image(
936937
base,
937938
[
939+
'git config --global --add safe.directory "/auditwheel_src"',
938940
"pip install -U pip setuptools pytest-cov",
939941
"pip install -U -e /auditwheel_src",
940942
],

0 commit comments

Comments
 (0)