From a4ae99f45340779d53dfb7ebe48ccd938deb6bf6 Mon Sep 17 00:00:00 2001 From: Simon Bourne Date: Thu, 30 Nov 2023 22:26:53 +0000 Subject: [PATCH] Don't remove intermediate build dir for now --- packages/rust-book/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/rust-book/src/lib.rs b/packages/rust-book/src/lib.rs index c954fce..12d80e8 100644 --- a/packages/rust-book/src/lib.rs +++ b/packages/rust-book/src/lib.rs @@ -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"))?;