From a75c576a65fb14e7de0e098c03e6b5e4e7fe86b0 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 11 Dec 2024 17:05:41 +0100 Subject: [PATCH] clear env for uv pip-compile --- backend/windmill-worker/src/python_executor.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/windmill-worker/src/python_executor.rs b/backend/windmill-worker/src/python_executor.rs index 90969fae04..586dd9f05e 100644 --- a/backend/windmill-worker/src/python_executor.rs +++ b/backend/windmill-worker/src/python_executor.rs @@ -329,7 +329,9 @@ pub async fn uv_pip_compile( let mut child_cmd = Command::new(uv_cmd); child_cmd .current_dir(job_dir) + .env_clear() .env("HOME", HOME_ENV.to_string()) + .env("PATH", PATH_ENV.to_string()) .args(&args) .stdout(Stdio::piped()) .stderr(Stdio::piped());