Commit 578be38
fix: handle multiple uv installations in fail-missing-uv test (#4422)
## Summary
The `fail-missing-uv` acceptance test was failing on systems with
multiple `uv` installations because it only removed the first `uv`
directory from PATH.
The test script used `command -v uv` which returns only the first
matching binary. On systems with multiple `uv` installations (e.g., one
from homebrew at `/opt/homebrew/bin/uv` and another from a tool like
langflow at `~/.langflow/uv/uv`), the script would only remove one
directory, leaving other `uv` binaries accessible. This caused the test
to pass unexpectedly instead of failing with "uv: command not found".
**Fix:** Changed the script to loop through all `uv` installations using
`which -a uv` and remove each containing directory from PATH.
## Test plan
- [x] Verified the test now correctly fails with "uv: command not found"
on a system with multiple `uv` installations
- [x] Ran the full acceptance test suite to ensure no regressions
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent c7b8cfa commit 578be38
File tree
1 file changed
+4
-4
lines changed- acceptance/bundle/templates/default-python/fail-missing-uv
1 file changed
+4
-4
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
0 commit comments