Skip to content

Commit 84d24a3

Browse files
fix: recreate broken cached uv venv
Amp-Thread-ID: https://ampcode.com/threads/T-019ed0f0-d9f9-75da-a034-cbfda2dcd6d1 Co-authored-by: Amp <amp@ampcode.com>
1 parent be848dc commit 84d24a3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎action.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,10 @@ runs:
506506
shell: bash
507507
working-directory: codeboarding-engine
508508
run: |
509+
if [ -d .venv ] && ! .venv/bin/python3 -c 'import sys; print(sys.executable)' >/dev/null 2>&1; then
510+
echo "Cached uv venv has a broken Python interpreter; recreating it."
511+
rm -rf .venv
512+
fi
509513
test -d .venv || uv venv # reuse the cached venv instead of wiping it (--clear defeated the cache)
510514
uv pip install -e .
511515

0 commit comments

Comments
 (0)