File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
crates/uv/src/commands/python Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,12 @@ pub(crate) async fn find(
43
43
let project = if no_project {
44
44
None
45
45
} else {
46
- match VirtualProject :: discover ( project_dir, & DiscoveryOptions :: default ( ) , & workspace_cache)
47
- . await
46
+ match VirtualProject :: discover_defaulted (
47
+ project_dir,
48
+ & DiscoveryOptions :: default ( ) ,
49
+ & workspace_cache,
50
+ )
51
+ . await
48
52
{
49
53
Ok ( project) => Some ( project) ,
50
54
Err ( WorkspaceError :: MissingProject ( _) ) => None ,
Original file line number Diff line number Diff line change @@ -45,8 +45,12 @@ pub(crate) async fn pin(
45
45
let virtual_project = if no_project {
46
46
None
47
47
} else {
48
- match VirtualProject :: discover ( project_dir, & DiscoveryOptions :: default ( ) , & workspace_cache)
49
- . await
48
+ match VirtualProject :: discover_defaulted (
49
+ project_dir,
50
+ & DiscoveryOptions :: default ( ) ,
51
+ & workspace_cache,
52
+ )
53
+ . await
50
54
{
51
55
Ok ( virtual_project) => Some ( virtual_project) ,
52
56
Err ( err) => {
You can’t perform that action at this time.
0 commit comments