Skip to content

Commit

Permalink
Use Temp.destroy instead of Path.rm_rf
Browse files Browse the repository at this point in the history
This will prevent dune from trying to clean it up again in the end.

Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Mar 22, 2021
1 parent cc0be5b commit ff67bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cache/local.ml
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ let search cache key =

let set_build_dir cache p = Result.Ok { cache with build_root = Some p }

let teardown cache = Path.rm_rf ~allow_external:true cache.temp_dir
let teardown cache = Temp.destroy Dir cache.temp_dir

let hint _ _ = Result.Ok ()

Expand Down

0 comments on commit ff67bfd

Please sign in to comment.