From e32246f172737ab15ef67272fb1dad74b1ea1623 Mon Sep 17 00:00:00 2001 From: SteveLauC Date: Mon, 16 Sep 2024 15:27:01 +0800 Subject: [PATCH] feat: clean scoop cache if cleanup is enabled (#909) --- src/steps/os/windows.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/steps/os/windows.rs b/src/steps/os/windows.rs index a9d17864..d752377a 100644 --- a/src/steps/os/windows.rs +++ b/src/steps/os/windows.rs @@ -57,6 +57,10 @@ pub fn run_scoop(ctx: &ExecutionContext) -> Result<()> { if ctx.config().cleanup() { ctx.run_type().execute(&scoop).args(["cleanup", "*"]).status_checked()?; + ctx.run_type() + .execute(&scoop) + .args(["cache", "rm", "-a"]) + .status_checked()? } Ok(())