diff --git a/Cargo.toml b/Cargo.toml index d666ba24d..94fc8b430 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -110,7 +110,7 @@ regex = "1.10.4" reqwest = { version = "0.12.3", default-features = false } reqwest-middleware = "0.3.0" reqwest-retry = "0.6.0" -resolvo = { version = "0.7.0" } +resolvo = { version = "0.8.0" } retry-policies = { version = "0.4.0", default-features = false } rmp-serde = { version = "1.2.0" } rstest = { version = "0.21.0" } diff --git a/crates/rattler_solve/src/resolvo/mod.rs b/crates/rattler_solve/src/resolvo/mod.rs index 5daaf632c..0159aca24 100644 --- a/crates/rattler_solve/src/resolvo/mod.rs +++ b/crates/rattler_solve/src/resolvo/mod.rs @@ -648,11 +648,9 @@ impl super::SolverImpl for Solver { }) .collect(); - let problem = Problem { - requirements: all_requirements, - constraints: root_constraints, - ..Problem::default() - }; + let problem = Problem::new() + .requirements(all_requirements) + .constraints(root_constraints); // Construct a solver and solve the problems in the queue let mut solver = LibSolvRsSolver::new(provider);