temporary fix: sourced .bashrc to set $PATH

Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
Lars Wirzenius
2023-12-21 15:37:30 +02:00
parent 18779c10cd
commit 072b942b1e
+4 -1
View File
@@ -149,7 +149,10 @@ fn run(
log.write(format!("CI run spec: {:#?}\n", runspec))?;
debug!("running CI in cloned repository");
let snippet = format!("set -xeuo pipefail\n{}", &runspec.shell);
let snippet = format!(
"set -xeuo pipefail\nsource $HOME/.bashrc\n\n{}",
&runspec.shell
);
runcmd(&mut run_log, &["bash", "-c", &snippet], src)?;
write_response(&Response::finished(RunResult::Success))?;