mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 10:33:49 +00:00
Remove TODOs around caching workspace discovery (#12510)
## Summary This happened!
This commit is contained in:
parent
882e2f9d3f
commit
7cb85fa08f
2 changed files with 2 additions and 6 deletions
|
@ -48,8 +48,6 @@ impl BuildRequires {
|
|||
..Default::default()
|
||||
},
|
||||
};
|
||||
|
||||
// TODO(konsti): Cache workspace discovery.
|
||||
let Some(project_workspace) =
|
||||
ProjectWorkspace::from_maybe_project_root(install_path, &discovery, cache).await?
|
||||
else {
|
||||
|
|
|
@ -51,8 +51,7 @@ impl RequiresDist {
|
|||
sources: SourceStrategy,
|
||||
cache: &WorkspaceCache,
|
||||
) -> Result<Self, MetadataError> {
|
||||
// TODO(konsti): Cache workspace discovery.
|
||||
let discovery_options = DiscoveryOptions {
|
||||
let discovery = DiscoveryOptions {
|
||||
stop_discovery_at: git_member.map(|git_member| {
|
||||
git_member
|
||||
.fetch_root
|
||||
|
@ -66,8 +65,7 @@ impl RequiresDist {
|
|||
},
|
||||
};
|
||||
let Some(project_workspace) =
|
||||
ProjectWorkspace::from_maybe_project_root(install_path, &discovery_options, cache)
|
||||
.await?
|
||||
ProjectWorkspace::from_maybe_project_root(install_path, &discovery, cache).await?
|
||||
else {
|
||||
return Ok(Self::from_metadata23(metadata));
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue