@@ -404,7 +404,7 @@ mod tests {
404
404
use std:: { collections:: BTreeMap , path:: PathBuf } ;
405
405
406
406
use pixi_build_type_conversions:: to_project_model_v1;
407
- use pixi_manifest:: Manifest ;
407
+ use pixi_manifest:: Manifests ;
408
408
use rattler_build:: { console_utils:: LoggingOutputHandler , recipe:: Recipe } ;
409
409
use rattler_conda_types:: { ChannelConfig , Platform } ;
410
410
use tempfile:: tempdir;
@@ -415,10 +415,10 @@ mod tests {
415
415
let tmp_dir = tempdir ( ) . unwrap ( ) ;
416
416
let tmp_manifest = tmp_dir. path ( ) . join ( "pixi.toml" ) ;
417
417
std:: fs:: write ( & tmp_manifest, manifest_source) . unwrap ( ) ;
418
- let manifest = pixi_manifest :: Manifest :: from_path ( & tmp_manifest) . unwrap ( ) ;
419
- let package = manifest. package . unwrap ( ) ;
418
+ let manifest = Manifests :: from_workspace_manifest_path ( tmp_manifest. clone ( ) ) . unwrap ( ) ;
419
+ let package = manifest. value . package . unwrap ( ) ;
420
420
let channel_config = ChannelConfig :: default_with_root_dir ( tmp_dir. path ( ) . to_path_buf ( ) ) ;
421
- let project_model = to_project_model_v1 ( & package, & channel_config) . unwrap ( ) ;
421
+ let project_model = to_project_model_v1 ( & package. value , & channel_config) . unwrap ( ) ;
422
422
423
423
let python_backend = PythonBuildBackend :: new (
424
424
tmp_manifest,
@@ -513,12 +513,12 @@ mod tests {
513
513
// write the raw string into the file
514
514
std:: fs:: write ( & tmp_manifest, package_with_host_and_build_deps) . unwrap ( ) ;
515
515
516
- let manifest = Manifest :: from_str ( & tmp_manifest, package_with_host_and_build_deps) . unwrap ( ) ;
516
+ let manifest = Manifests :: from_workspace_manifest_path ( tmp_manifest. clone ( ) ) . unwrap ( ) ;
517
+ let package = manifest. value . package . unwrap ( ) ;
517
518
let channel_config = ChannelConfig :: default_with_root_dir ( tmp_dir. path ( ) . to_path_buf ( ) ) ;
518
- let project_model =
519
- to_project_model_v1 ( & manifest. package . unwrap ( ) , & channel_config) . unwrap ( ) ;
519
+ let project_model = to_project_model_v1 ( & package. value , & channel_config) . unwrap ( ) ;
520
520
let python_backend = PythonBuildBackend :: new (
521
- manifest . path ,
521
+ package . provenance . path ,
522
522
project_model,
523
523
PythonBackendConfig :: default ( ) ,
524
524
LoggingOutputHandler :: default ( ) ,
0 commit comments