File tree Expand file tree Collapse file tree 6 files changed +9
-25
lines changed
uv-distribution/src/metadata Expand file tree Collapse file tree 6 files changed +9
-25
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ impl RequiresDist {
61
61
SourceStrategy :: Enabled => MemberDiscovery :: default ( ) ,
62
62
SourceStrategy :: Disabled => MemberDiscovery :: None ,
63
63
} ,
64
-
65
64
..DiscoveryOptions :: default ( )
66
65
} ;
67
66
let Some ( project_workspace) =
Original file line number Diff line number Diff line change @@ -106,12 +106,8 @@ pub(crate) async fn export(
106
106
. with_context ( || format ! ( "Package `{package}` not found in workspace" ) ) ?,
107
107
)
108
108
} 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 ?
115
111
} ;
116
112
ExportTarget :: Project ( project)
117
113
} ;
Original file line number Diff line number Diff line change @@ -115,12 +115,8 @@ pub(crate) async fn sync(
115
115
. with_context ( || format ! ( "Package `{package}` not found in workspace" ) ) ?,
116
116
)
117
117
} 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 ?
124
120
} ;
125
121
126
122
// TODO(lucab): improve warning content
Original file line number Diff line number Diff line change @@ -45,12 +45,8 @@ pub(crate) async fn find(
45
45
let project = if no_project {
46
46
None
47
47
} 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
54
50
{
55
51
Ok ( project) => Some ( project) ,
56
52
Err ( WorkspaceError :: MissingProject ( _) ) => None ,
Original file line number Diff line number Diff line change @@ -45,12 +45,8 @@ pub(crate) async fn pin(
45
45
let virtual_project = if no_project {
46
46
None
47
47
} 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
54
50
{
55
51
Ok ( virtual_project) => Some ( virtual_project) ,
56
52
Err ( err) => {
Original file line number Diff line number Diff line change @@ -258,6 +258,7 @@ fn virtual_dependency_group() -> Result<()> {
258
258
----- stderr -----
259
259
Using CPython 3.12.[X] interpreter at: [PYTHON-3.12]
260
260
Creating virtual environment at: .venv
261
+ warning: A virtual environment already exists at `.venv`. In the future, uv will require `--clear` to replace it
261
262
Activate with: source .venv/[BIN]/activate
262
263
" ) ;
263
264
You can’t perform that action at this time.
0 commit comments