Skip to content

Commit c9f03fa

Browse files
authored
Merge pull request #2 from Serverless-Devs/fix/release-container-git-safe-directory
fix(release): mark workspace safe for git in manylinux containers
2 parents d1d1171 + 1a3b35d commit c9f03fa

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)