Skip to main content

run_setup

Function run_setup 

Source
pub fn run_setup(
    setup: &str,
    worktree: &Path,
    main_checkout: &Path,
    env: &BTreeMap<String, String>,
    log_path: &Path,
    timeout: Duration,
) -> Result<(), String>
Expand description

Runs setup with bash in worktree, outside the sandbox, writing its combined output to log_path. Every env entry and BLYTE_MAIN_CHECKOUT=<main_checkout> are exported first. Ok(()) on exit 0; Err(message) otherwise, where message is “setup failed (exit N)” or “setup failed: ” (a timeout or spawn failure), followed by a newline and the last 20 lines of the output.