File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -363,6 +363,19 @@ impl RustwideBuilder {
363
363
}
364
364
}
365
365
366
+ // FIXME: for now, purge all build dirs before each build.
367
+ // Currently we have some error situations where the build directory wouldn't be deleted
368
+ // after the build failed:
369
+ // https://github.com/rust-lang/docs.rs/issues/820
370
+ // This should be solved in a better way, likely refactoring the whole builder structure,
371
+ // but for now we chose this simple way to prevent that the build directory remains can
372
+ // fill up disk space.
373
+ // This also prevents having multiple builders using the same rustwide workspace,
374
+ // which we don't do. Currently our separate builders use a separate rustwide workspace.
375
+ self . workspace
376
+ . purge_all_build_dirs ( )
377
+ . map_err ( FailureError :: compat) ?;
378
+
366
379
let mut build_dir = self . workspace . build_dir ( & format ! ( "{name}-{version}" ) ) ;
367
380
build_dir. purge ( ) . map_err ( FailureError :: compat) ?;
368
381
You can’t perform that action at this time.
0 commit comments