From 91b6732c40ec2e235fa700f466218c528fe0826b Mon Sep 17 00:00:00 2001 From: pyranota Date: Tue, 26 Nov 2024 20:11:20 +0100 Subject: [PATCH] Use TAR_PIP(PYTHON_311)_CACHE_DIR instead --- backend/windmill-worker/src/global_cache.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/windmill-worker/src/global_cache.rs b/backend/windmill-worker/src/global_cache.rs index 8f7f7a93e956d..1ffffb5c4b60d 100644 --- a/backend/windmill-worker/src/global_cache.rs +++ b/backend/windmill-worker/src/global_cache.rs @@ -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);