mirror of https://github.com/astral-sh/uv
Remove TODOs around caching workspace discovery (#12510)
## Summary This happened!
This commit is contained in:
parent
882e2f9d3f
commit
7cb85fa08f
|
|
@ -48,8 +48,6 @@ impl BuildRequires {
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO(konsti): Cache workspace discovery.
|
|
||||||
let Some(project_workspace) =
|
let Some(project_workspace) =
|
||||||
ProjectWorkspace::from_maybe_project_root(install_path, &discovery, cache).await?
|
ProjectWorkspace::from_maybe_project_root(install_path, &discovery, cache).await?
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
|
|
@ -51,8 +51,7 @@ impl RequiresDist {
|
||||||
sources: SourceStrategy,
|
sources: SourceStrategy,
|
||||||
cache: &WorkspaceCache,
|
cache: &WorkspaceCache,
|
||||||
) -> Result<Self, MetadataError> {
|
) -> Result<Self, MetadataError> {
|
||||||
// TODO(konsti): Cache workspace discovery.
|
let discovery = DiscoveryOptions {
|
||||||
let discovery_options = DiscoveryOptions {
|
|
||||||
stop_discovery_at: git_member.map(|git_member| {
|
stop_discovery_at: git_member.map(|git_member| {
|
||||||
git_member
|
git_member
|
||||||
.fetch_root
|
.fetch_root
|
||||||
|
|
@ -66,8 +65,7 @@ impl RequiresDist {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
let Some(project_workspace) =
|
let Some(project_workspace) =
|
||||||
ProjectWorkspace::from_maybe_project_root(install_path, &discovery_options, cache)
|
ProjectWorkspace::from_maybe_project_root(install_path, &discovery, cache).await?
|
||||||
.await?
|
|
||||||
else {
|
else {
|
||||||
return Ok(Self::from_metadata23(metadata));
|
return Ok(Self::from_metadata23(metadata));
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue