Fix win compile (#1367)
This commit is contained in:
@@ -3,16 +3,13 @@ use db::models::{
|
||||
task_attempt::{TaskAttempt, TaskAttemptError},
|
||||
};
|
||||
use deployment::Deployment;
|
||||
use executors::{actions::ExecutorAction, executors::ExecutorError};
|
||||
#[cfg(unix)]
|
||||
use executors::{
|
||||
actions::{
|
||||
ExecutorActionType,
|
||||
ExecutorAction, ExecutorActionType,
|
||||
script::{ScriptContext, ScriptRequest, ScriptRequestLanguage},
|
||||
},
|
||||
command::CommandBuilder,
|
||||
command::apply_overrides,
|
||||
executors::codex::Codex,
|
||||
command::{CommandBuilder, apply_overrides},
|
||||
executors::{ExecutorError, codex::Codex},
|
||||
};
|
||||
use services::services::container::ContainerService;
|
||||
|
||||
|
||||
@@ -13,8 +13,6 @@ use executors::{
|
||||
executors::cursor::CursorAgent,
|
||||
};
|
||||
use services::services::container::ContainerService;
|
||||
use shlex::try_quote;
|
||||
use utils::shell::UnixShell;
|
||||
|
||||
use crate::{error::ApiError, routes::task_attempts::ensure_worktree_path};
|
||||
|
||||
@@ -56,6 +54,8 @@ pub async fn run_cursor_setup(
|
||||
async fn get_setup_helper_action() -> Result<ExecutorAction, ApiError> {
|
||||
#[cfg(unix)]
|
||||
{
|
||||
use shlex::try_quote;
|
||||
use utils::shell::UnixShell;
|
||||
let base_command = CursorAgent::base_command();
|
||||
|
||||
// Install script with PATH setup
|
||||
|
||||
@@ -5,7 +5,6 @@ use std::{
|
||||
env::{join_paths, split_paths},
|
||||
ffi::{OsStr, OsString},
|
||||
path::{Path, PathBuf},
|
||||
process::Stdio,
|
||||
};
|
||||
|
||||
use crate::tokio::block_on;
|
||||
@@ -183,7 +182,7 @@ impl UnixShell {
|
||||
|
||||
#[cfg(not(windows))]
|
||||
async fn get_fresh_path() -> Option<String> {
|
||||
use std::time::Duration;
|
||||
use std::{process::Stdio, time::Duration};
|
||||
|
||||
use tokio::process::Command;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user