diff --git a/backend/windmill-worker/src/ansible_executor.rs b/backend/windmill-worker/src/ansible_executor.rs index d3fee3a781..b8a57ded16 100644 --- a/backend/windmill-worker/src/ansible_executor.rs +++ b/backend/windmill-worker/src/ansible_executor.rs @@ -2,11 +2,7 @@ use std::{collections::HashMap, os::unix::fs::PermissionsExt, path::PathBuf, process::Stdio}; #[cfg(windows)] -use std::{ - collections::HashMap, - path::{Path, PathBuf}, - process::Stdio, -}; +use std::{collections::HashMap, path::PathBuf, process::Stdio}; use anyhow::anyhow; use itertools::Itertools; diff --git a/backend/windmill-worker/src/python_executor.rs b/backend/windmill-worker/src/python_executor.rs index d063e1aca7..eb35cd7f4a 100644 --- a/backend/windmill-worker/src/python_executor.rs +++ b/backend/windmill-worker/src/python_executor.rs @@ -1650,8 +1650,7 @@ async fn spawn_uv_install( #[cfg(windows)] { - let installer_path = if no_uv_install { command_args[0] } else { "uv" }; - let mut cmd: Command = Command::new(&installer_path); + let mut cmd: Command = Command::new("uv"); cmd.env_clear() .envs(envs) .envs(PROXY_ENVS.clone())