From c08da4cf3730fe54f616cee4b5bec52eef130fd2 Mon Sep 17 00:00:00 2001 From: Ben Cressey Date: Mon, 9 Oct 2023 17:57:44 +0000 Subject: [PATCH] twoliter: clean up prep dir between builds Otherwise, files that were present in an earlier build that have been renamed or removed might still be in the prep directory, where they will be added to the new archive. Signed-off-by: Ben Cressey --- twoliter/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/twoliter/build.rs b/twoliter/build.rs index 40eabc335..51410b577 100644 --- a/twoliter/build.rs +++ b/twoliter/build.rs @@ -20,6 +20,7 @@ fn main() { let paths = Paths::new(); println!("cargo:rerun-if-changed={}", paths.data_input_dir.display()); + let _ = fs::remove_dir_all(&paths.prep_dir); fs::create_dir_all(&paths.prep_dir).expect(&format!( "Unable to create directory '{}'", paths.prep_dir.display()