From 1559f90576d6e1c8f20e4b53b45589e9b3dc02b6 Mon Sep 17 00:00:00 2001 From: mayeut Date: Sun, 1 May 2022 19:38:04 +0200 Subject: [PATCH] fix: add `/auditwheel_src` to git safe directories 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. --- tests/integration/test_manylinux.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/integration/test_manylinux.py b/tests/integration/test_manylinux.py index a88bbdee..c2d11232 100644 --- a/tests/integration/test_manylinux.py +++ b/tests/integration/test_manylinux.py @@ -712,6 +712,7 @@ def any_manylinux_img(self, request): with tmp_docker_image( base, [ + 'git config --global --add safe.directory "/auditwheel_src"', "pip install -U pip setuptools pytest-cov", "pip install -U -e /auditwheel_src", ], @@ -935,6 +936,7 @@ def any_manylinux_img(self, request): with tmp_docker_image( base, [ + 'git config --global --add safe.directory "/auditwheel_src"', "pip install -U pip setuptools pytest-cov", "pip install -U -e /auditwheel_src", ],