uv
uv copied to clipboard
Avoid showing duplicate paths in `uv python list`
Summary
- Resolves issue #6690
Test Plan
$ cargo run python list
Hi! Thanks for contributing this fix.
I applied a small patch (https://github.com/astral-sh/uv/pull/6740/commits/4d4cd93ada926005bfeec5eb39c50919b209b734) to move the filtering up where we do all the other filtering. What do you think?
Tested with
❯ PATH="/Users/zb/Library/Application Support/uv/python/cpython-3.10.13-macos-aarch64-none/bin/:$PATH" uv python list | wc -l
16
❯ PATH="/Users/zb/Library/Application Support/uv/python/cpython-3.10.13-macos-aarch64-none/bin/:$PATH" ./target/debug/uv python list | wc -l
15
Hi! Thanks for contributing this fix.
I applied a small patch (4d4cd93) to move the filtering up where we do all the other filtering. What do you think?
thanks it looks great! sorry I'm new to Rust and I didn't run all test, so my code failed in two cases.