File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -358,7 +358,10 @@ async fn find_target(
358
358
VirtualProject :: Project (
359
359
Workspace :: discover (
360
360
project_dir,
361
- & DiscoveryOptions :: default ( ) ,
361
+ & DiscoveryOptions {
362
+ project : uv_workspace:: ProjectDiscovery :: Required ,
363
+ ..DiscoveryOptions :: default ( )
364
+ } ,
362
365
& WorkspaceCache :: default ( ) ,
363
366
)
364
367
. await
@@ -369,7 +372,10 @@ async fn find_target(
369
372
} else {
370
373
VirtualProject :: discover (
371
374
project_dir,
372
- & DiscoveryOptions :: default ( ) ,
375
+ & DiscoveryOptions {
376
+ project : uv_workspace:: ProjectDiscovery :: Required ,
377
+ ..DiscoveryOptions :: default ( )
378
+ } ,
373
379
& WorkspaceCache :: default ( ) ,
374
380
)
375
381
. await
Original file line number Diff line number Diff line change @@ -1867,7 +1867,7 @@ fn version_get_workspace() -> Result<()> {
1867
1867
----- stdout -----
1868
1868
1869
1869
----- stderr -----
1870
- error: Missing `project.name` field in: pyproject.toml
1870
+ error: No `project` table found in: `[TEMP_DIR]/ pyproject.toml`
1871
1871
" ) ;
1872
1872
1873
1873
Ok ( ( ) )
@@ -2481,7 +2481,7 @@ fn virtual_empty() -> Result<()> {
2481
2481
----- stdout -----
2482
2482
2483
2483
----- stderr -----
2484
- error: Missing `project.name` field in: pyproject.toml
2484
+ error: No `project` table found in: `[TEMP_DIR]/ pyproject.toml`
2485
2485
" ) ;
2486
2486
2487
2487
let pyproject_toml = context. read ( "pyproject.toml" ) ;
@@ -2505,7 +2505,7 @@ fn virtual_empty() -> Result<()> {
2505
2505
----- stdout -----
2506
2506
2507
2507
----- stderr -----
2508
- error: Missing `project.name` field in: pyproject.toml
2508
+ error: No `project` table found in: `[TEMP_DIR]/ pyproject.toml`
2509
2509
" ) ;
2510
2510
2511
2511
let pyproject_toml = context. read ( "pyproject.toml" ) ;
@@ -2546,7 +2546,7 @@ fn add_virtual_dependency_group() -> Result<()> {
2546
2546
----- stdout -----
2547
2547
2548
2548
----- stderr -----
2549
- error: Missing `project.name` field in: pyproject.toml
2549
+ error: No `project` table found in: `[TEMP_DIR]/ pyproject.toml`
2550
2550
" ) ;
2551
2551
2552
2552
let pyproject_toml = context. read ( "pyproject.toml" ) ;
@@ -2572,7 +2572,7 @@ fn add_virtual_dependency_group() -> Result<()> {
2572
2572
----- stdout -----
2573
2573
2574
2574
----- stderr -----
2575
- error: Missing `project.name` field in: pyproject.toml
2575
+ error: No `project` table found in: `[TEMP_DIR]/ pyproject.toml`
2576
2576
" ) ;
2577
2577
2578
2578
let pyproject_toml = context. read ( "pyproject.toml" ) ;
You can’t perform that action at this time.
0 commit comments