From 251dc901f5c5362f468830187de481907f47aaad Mon Sep 17 00:00:00 2001 From: Collin Brittain Date: Wed, 1 Nov 2023 10:26:21 -0500 Subject: [PATCH] Cleanup temp dir before generation --- steward_proto_rust_build/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/steward_proto_rust_build/src/main.rs b/steward_proto_rust_build/src/main.rs index 0913c9df..597a658d 100644 --- a/steward_proto_rust_build/src/main.rs +++ b/steward_proto_rust_build/src/main.rs @@ -61,6 +61,8 @@ fn main() { fs::create_dir_all(tmp_dir) .unwrap_or_else(|_| panic!("Failed to create {:?}", tmp_dir.to_str())); + cleanup_files(tmp_dir); + // Compile all proto files let mut config = prost_build::Config::default(); config.out_dir(tmp_dir);