Skip to content

Commit

Permalink
fix windows build (#5333)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyranota authored Feb 19, 2025
1 parent 00d2d08 commit 5a3ca3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 1 addition & 5 deletions backend/windmill-worker/src/ansible_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions backend/windmill-worker/src/python_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 5a3ca3c

Please sign in to comment.