Skip to content

Commit 1a3b35d

Browse files
committed
fix(release): mark workspace safe for git in manylinux containers
Inside quay.io/pypa/manylinux_2_28_* the workspace is owned by the runner's UID but the container runs as root, so git refuses to read it ("dubious ownership"). That crashes setuptools-scm version resolution during pip install -e . and breaks the linux-amd64 / linux-arm64 builds. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Signed-off-by: Sodawyx <sodawyx@126.com>
1 parent d1d1171 commit 1a3b35d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,14 @@ jobs:
108108
ref: ${{ needs.verify-version.outputs.tag }}
109109
fetch-depth: 0 # setuptools-scm needs full history + tags
110110

111+
# Inside the manylinux container the workspace is owned by a different
112+
# UID than root, so git refuses to read it ("dubious ownership") and
113+
# setuptools-scm version resolution fails during pip install.
114+
- name: Mark workspace as safe for git (container)
115+
if: matrix.container != ''
116+
shell: bash
117+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
118+
111119
# manylinux images ship multiple Pythons under /opt/python; expose one.
112120
- name: Configure Python (manylinux container)
113121
if: matrix.container != ''

0 commit comments

Comments
 (0)