From 5a3ca3c8f2b456c6cfa9e16a695ccb8311f214e4 Mon Sep 17 00:00:00 2001 From: pyranota <92104930+pyranota@users.noreply.github.com> Date: Thu, 20 Feb 2025 02:26:09 +0300 Subject: [PATCH] fix windows build (#5333) --- backend/windmill-worker/src/ansible_executor.rs | 6 +----- backend/windmill-worker/src/python_executor.rs | 3 +-- 2 files changed, 2 insertions(+), 7 deletions(-) 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())