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.
Returns Ok(()) when exit code is 0 and the log is written; otherwise returns Err(message)
including the failure header, the last 20 lines of each non-empty stream under stdout: /
stderr: labels, and a trailing full log: <absolute path> line (or the log write error
naming the path if writing failed).