Skip to content
← All reviews
astral-sh/uv #20507 · charliermarsh · 4mo ago

Avoid Tokio startup for synchronous CLI commands

Panel verdict

The panel surfaced minor issues worth a look before merge.

1
raised by reviewers
1
kept by the panel

Findings

LowArchitectureconfidence 0.95

Duplicated workspace discovery logic in discover_install_path

The new discover_install_path method duplicates a significant portion of the existing Workspace::discover method (lines ~299–410 vs the original async method). Both methods implement the same root-selection, pyproject.toml parsing, workspace membership, and exclusion logic, but one is synchronous and the other async. This duplication creates a maintenance burden: any future change to workspace discovery rules (e.g., new fields, changed exclusion semantics) must be applied in two places, increasing the risk of drift and bugs. Consider refactoring the shared logic into a synchronous helper that both methods can call, or extracting the synchronous core from the async method.

3 reviewers · deepseek/deepseek-v4-flash · reviewed in 3m 43s · 4 files, +324 −26

Ship the PR.
Skip the noise.

Free on 2 repositories · No credit card · Advisory only—never blocks a merge