Commit ffe16b0
committed
Rename sandbox dir to .bblocks-sandbox and detect stale venvs
Renames the sandbox directory from .transforms-sandbox to .bblocks-sandbox
to reflect that it now hosts both transform and validator plugin venvs.
Also adds a shebang-target check to venv_needs_recreate(): the existing
version check was insufficient when the sandbox directory was renamed,
because pip scripts have an absolute shebang baked in at venv creation
time. Moving the venv silently breaks pip even when the Python version
matches. The new check reads pip's first line and verifies the target
path exists, catching both renamed-sandbox and removed-interpreter cases.1 parent dff5eb6 commit ffe16b0
1 file changed
Lines changed: 27 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
12 | 26 | | |
13 | 27 | | |
14 | 28 | | |
15 | | - | |
16 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
17 | 41 | | |
18 | 42 | | |
19 | 43 | | |
| |||
0 commit comments