clear env for uv pip-compile

This commit is contained in:
Ruben Fiszel
2024-12-11 17:05:41 +01:00
parent 1b922f3ba9
commit a75c576a65

View File

@@ -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());