mirror of
https://seed.radicle.dev/rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE.git
synced 2026-11-15 16:00:39 +08:00
feat: remove source tree on successful run
Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
@@ -156,6 +156,8 @@ fn run(
|
||||
|
||||
run_log.write("CI run finished successfully\n".into())?;
|
||||
|
||||
std::fs::remove_dir_all(src).map_err(|e| NativeError::RemoveDir(src.into(), e))?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -335,4 +337,7 @@ enum NativeError {
|
||||
|
||||
#[error("failed to write to log file {0}")]
|
||||
WriteLogFile(PathBuf, #[source] std::io::Error),
|
||||
|
||||
#[error("failed to remove {0}")]
|
||||
RemoveDir(PathBuf, #[source] std::io::Error),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user