trying to remove blocking directory

This commit is contained in:
2025-08-25 18:54:13 -05:00
committed by Jason Ross
parent 8062abf76f
commit 5b50e89773
+13
View File
@@ -229,9 +229,22 @@ jobs:
set -euo pipefail
export PYENV_ROOT="${GITHUB_WORKSPACE}/.pyenv"
# Remove any leftover pyenv directories that block installation
if [ -d "$PYENV_ROOT" ]; then
echo "Removing existing workspace pyenv: $PYENV_ROOT"
rm -rf "$PYENV_ROOT"
fi
if [ -d "$HOME/.pyenv" ]; then
echo "Removing existing home pyenv: $HOME/.pyenv"
rm -rf "$HOME/.pyenv"
fi
mkdir -p "$PYENV_ROOT"
echo "Downloading pyenv installer and running it"
wget -qO /tmp/pyenv_install.sh https://pyenv.run
chmod +x /tmp/pyenv_install.sh
bash /tmp/pyenv_install.sh