From e878167f4b601a0b8a43717069825f67b7852f50 Mon Sep 17 00:00:00 2001 From: nichmor Date: Tue, 22 Oct 2024 09:39:24 +0300 Subject: [PATCH] feat: use the same package cache folder --- src/repodata.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/repodata.rs b/src/repodata.rs index 9281e66dc..23942560e 100644 --- a/src/repodata.rs +++ b/src/repodata.rs @@ -1,3 +1,4 @@ +use rattler::package_cache::PackageCache; use rattler_repodata_gateway::{ChannelConfig, Gateway}; use std::path::PathBuf; @@ -13,10 +14,13 @@ pub(crate) trait Repodata { std::env::current_dir().unwrap_or_else(|_| PathBuf::from("./")) }); + let package_cache = PackageCache::new(cache_dir.join("pkgs")); + // Construct the gateway Gateway::builder() .with_client(authenticated_client) .with_cache_dir(cache_dir.join(pixi_consts::consts::CONDA_REPODATA_CACHE_DIR)) + .with_package_cache(package_cache) .with_channel_config(channel_config) .finish() }