Repository navigation
Commit a419b00
committed
fix(install): refresh the workspace venv without stripping the developer's extras
Both installer paths -- scripts/install.sh and `studyloop install tools`
(install_workspace_tools) -- ran a plain `uv sync --all-packages` before
installing the tool venvs. That form removes every package the lock does
not require for the requested extras, so a developer who had synced the
semantic (or web, or content) extra into .venv lost it the moment they
reinstalled the tools. Found live on the Mac Mini today: the tool
reinstall silently removed sqlite-vec and onnxruntime from a .venv synced
an hour earlier with --all-extras. It is also the mechanism behind the
first report of this day: a .venv/bin/session-maint with no sqlite-vec,
shadowing a correct ~/.local/bin/session-maint on PATH, printing
"Semantic layer not installed" with a hint that reinstalled the wrong venv.
Both call sites now pass --inexact ("do not remove extraneous packages"):
the workspace is still brought up to date, nothing the developer added is
taken away. Proven on a scratch uv workspace: an extra survives
`uv sync --all-packages --inexact` and is removed by the plain form.
Tests pin the flag at both sites (installers.py command list, and a
contract test over install.sh's sync line).1 parent 7f72744 commit a419b00
4 files changed
Lines changed: 34 additions & 4 deletions
File tree
- packages/studyloop
- src/studyloop
- tests
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1337 | 1337 | | |
1338 | 1338 | | |
1339 | 1339 | | |
1340 | | - | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
1341 | 1347 | | |
1342 | 1348 | | |
1343 | 1349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| |||
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
102 | | - | |
| 107 | + | |
103 | 108 | | |
104 | 109 | | |
105 | 110 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
| |||
0 commit comments