Skip to content

Commit

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

fn build(&self) -> Result<()> {
// TODO: Figure out why build fails sometimes when we remove the output dir:
// fs::remove_dir_all(&self.out_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 b3de109

Please sign in to comment.