Skip to content

Commit

Permalink
Use TAR_PIP(PYTHON_311)_CACHE_DIR instead
Browse files Browse the repository at this point in the history
  • Loading branch information
pyranota committed Nov 26, 2024
1 parent 18a4fe6 commit 91b6732
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/windmill-worker/src/global_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ pub async fn build_tar_and_push(
) -> error::Result<()> {
use object_store::path::Path;

use crate::PY311_CACHE_DIR;
use crate::{TAR_PIP_CACHE_DIR, TAR_PY311_CACHE_DIR};

tracing::info!("Started building and pushing piptar {folder}");
let start = Instant::now();
let folder_name = folder.split("/").last().unwrap();
let prefix = if no_uv {
PIP_CACHE_DIR
TAR_PIP_CACHE_DIR
} else {
PY311_CACHE_DIR
TAR_PY311_CACHE_DIR
};
let tar_path = format!("tar/{prefix}/{folder_name}_tar.tar",);
let tar_path = format!("{prefix}/{folder_name}_tar.tar",);

let tar_file = std::fs::File::create(&tar_path)?;
let mut tar = tar::Builder::new(tar_file);
Expand Down

0 comments on commit 91b6732

Please sign in to comment.