Skip to content

Commit

Permalink
Don't remove intermediate build dir for now
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-bourne committed Nov 30, 2023
1 parent b3de109 commit a4ae99f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/rust-book/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ impl Book {
}

fn build(&self) -> Result<()> {
fs::remove_dir_all(&self.out_dir)?;
// TODO: Figure out why build fails sometimes when we remove the output dir:
// fs::remove_dir_all(&self.out_dir)?;
fs::create_dir_all(&self.out_dir)?;
let mdbook_config_file = self.cargo_manifest_dir.join("book.toml");
fs::copy(&mdbook_config_file, self.out_dir.join("book.toml"))?;
Expand Down

0 comments on commit a4ae99f

Please sign in to comment.