01Llowconf 95%
Duplicated workspace discovery logic in discover_install_path
crates/uv-workspace/src/workspace.rs:302
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.