File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,16 @@ export PYTHONPATH="$PWD${PYTHONPATH:+:${PYTHONPATH}}"
99# Ensure dependency archives are read from the restored workspace cache even in isolated builds.
1010export PYXMLSEC_LIBS_DIR=" $PWD /libs"
1111
12+ # Step: Allow Git access to the mounted workspace for SCM version discovery
13+ echo " == [container] Step: Configure Git safe.directory =="
14+ if command -v git > /dev/null 2>&1 ; then
15+ GIT_ROOT=$( git rev-parse --show-toplevel 2> /dev/null || true)
16+ if [ -n " $GIT_ROOT " ]; then
17+ git config --global --add safe.directory " $GIT_ROOT "
18+ echo " GIT_SAFE_DIRECTORY=$GIT_ROOT "
19+ fi
20+ fi
21+
1222# Step: Install system build dependencies (manylinux only)
1323echo " == [container] Step: Install system build dependencies (manylinux only) =="
1424case " $MANYLINUX_IMAGE " in
You can’t perform that action at this time.
0 commit comments