Skip to content

Commit

Permalink
feat: use the same package cache folder (#2335)
Browse files Browse the repository at this point in the history
  • Loading branch information
nichmor authored Oct 22, 2024
1 parent 9eb6e59 commit bae4984
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/repodata.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use rattler::package_cache::PackageCache;
use rattler_repodata_gateway::{ChannelConfig, Gateway};
use std::path::PathBuf;

Expand All @@ -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()
}
Expand Down

0 comments on commit bae4984

Please sign in to comment.