Skip to content

Commit 6fb02e3

Browse files
committed
Update snapshot
1 parent 0fd393b commit 6fb02e3

File tree

6 files changed

+9
-25
lines changed

6 files changed

+9
-25
lines changed

crates/uv-distribution/src/metadata/requires_dist.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ impl RequiresDist {
6161
SourceStrategy::Enabled => MemberDiscovery::default(),
6262
SourceStrategy::Disabled => MemberDiscovery::None,
6363
},
64-
6564
..DiscoveryOptions::default()
6665
};
6766
let Some(project_workspace) =

crates/uv/src/commands/project/export.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,8 @@ pub(crate) async fn export(
106106
.with_context(|| format!("Package `{package}` not found in workspace"))?,
107107
)
108108
} else {
109-
VirtualProject::discover(
110-
project_dir,
111-
&DiscoveryOptions::default(),
112-
&workspace_cache,
113-
)
114-
.await?
109+
VirtualProject::discover(project_dir, &DiscoveryOptions::default(), &workspace_cache)
110+
.await?
115111
};
116112
ExportTarget::Project(project)
117113
};

crates/uv/src/commands/project/sync.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,8 @@ pub(crate) async fn sync(
115115
.with_context(|| format!("Package `{package}` not found in workspace"))?,
116116
)
117117
} else {
118-
VirtualProject::discover(
119-
project_dir,
120-
&DiscoveryOptions::default(),
121-
&workspace_cache,
122-
)
123-
.await?
118+
VirtualProject::discover(project_dir, &DiscoveryOptions::default(), &workspace_cache)
119+
.await?
124120
};
125121

126122
// TODO(lucab): improve warning content

crates/uv/src/commands/python/find.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,8 @@ pub(crate) async fn find(
4545
let project = if no_project {
4646
None
4747
} else {
48-
match VirtualProject::discover(
49-
project_dir,
50-
&DiscoveryOptions::default(),
51-
&workspace_cache,
52-
)
53-
.await
48+
match VirtualProject::discover(project_dir, &DiscoveryOptions::default(), &workspace_cache)
49+
.await
5450
{
5551
Ok(project) => Some(project),
5652
Err(WorkspaceError::MissingProject(_)) => None,

crates/uv/src/commands/python/pin.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,8 @@ pub(crate) async fn pin(
4545
let virtual_project = if no_project {
4646
None
4747
} else {
48-
match VirtualProject::discover(
49-
project_dir,
50-
&DiscoveryOptions::default(),
51-
&workspace_cache,
52-
)
53-
.await
48+
match VirtualProject::discover(project_dir, &DiscoveryOptions::default(), &workspace_cache)
49+
.await
5450
{
5551
Ok(virtual_project) => Some(virtual_project),
5652
Err(err) => {

crates/uv/tests/it/venv.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ fn virtual_dependency_group() -> Result<()> {
258258
----- stderr -----
259259
Using CPython 3.12.[X] interpreter at: [PYTHON-3.12]
260260
Creating virtual environment at: .venv
261+
warning: A virtual environment already exists at `.venv`. In the future, uv will require `--clear` to replace it
261262
Activate with: source .venv/[BIN]/activate
262263
");
263264

0 commit comments

Comments
 (0)