File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments