diff --git a/src/render/solver.rs b/src/render/solver.rs index a4aac14a..bc175bc3 100644 --- a/src/render/solver.rs +++ b/src/render/solver.rs @@ -11,7 +11,7 @@ use futures::FutureExt; use indicatif::{HumanBytes, ProgressBar, ProgressStyle}; use itertools::Itertools; use rattler::install::{DefaultProgressFormatter, IndicatifReporter, Installer}; -use rattler_conda_types::{Channel, MatchSpec, Platform, RepoDataRecord}; +use rattler_conda_types::{Channel, MatchSpec, Platform, PrefixRecord, RepoDataRecord}; use rattler_solve::{resolvo::Solver, ChannelPriority, SolveStrategy, SolverImpl, SolverTask}; use url::Url; @@ -309,12 +309,15 @@ pub async fn install_packages( ) })?; + let installed_packages = PrefixRecord::collect_from_prefix(target_prefix)?; + tracing::info!("\nInstalling {name} environment\n"); Installer::new() .with_download_client(tool_configuration.client.clone()) .with_target_platform(target_platform) .with_execute_link_scripts(true) .with_package_cache(tool_configuration.package_cache.clone()) + .with_installed_packages(installed_packages) .with_reporter( IndicatifReporter::builder() .with_multi_progress(