Skip to content

Commit

Permalink
Cleanup temp dir before generation
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrit committed Nov 1, 2023
1 parent a53a41f commit 251dc90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions steward_proto_rust_build/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 251dc90

Please sign in to comment.