Skip to content

Commit 193ba95

Browse files
Retry gha
1 parent c684be2 commit 193ba95

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

action.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,14 @@ runs:
490490
shell: bash
491491
working-directory: codeboarding-engine
492492
run: |
493-
test -d .venv || uv venv # reuse the cached venv instead of wiping it (--clear defeated the cache)
493+
# Reuse the cached venv when it's healthy, but rebuild it if its interpreter
494+
# symlink is dead. The cache key is the lockfiles only, NOT the Python patch
495+
# version, so when setup-python provisions a newer patch (e.g. 3.13.13 ->
496+
# 3.13.14) and GitHub GCs the old toolcache dir, the cached `.venv/bin/python3`
497+
# symlink dangles. A bare `test -d .venv` would then reuse it and `uv pip
498+
# install -e .` fails with "Broken symlink … was the underlying Python
499+
# interpreter removed?". Probing the interpreter recreates the venv instead.
500+
.venv/bin/python -c '' 2>/dev/null || uv venv # rebuild on missing/broken venv
494501
uv pip install -e .
495502
496503
- name: Install LSP servers

0 commit comments

Comments
 (0)