Skip to content

Commit

Permalink
fix: disable background digests on Windows
Browse files Browse the repository at this point in the history
Fixes #8228

In some cases when the shared cache is enabled, some temporary
directories cannot be removed.

Signed-off-by: Etienne Millon <[email protected]>
  • Loading branch information
emillon committed Jul 25, 2023
1 parent 4006c20 commit a210c44
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ Unreleased
- Fix permission errors when `sendfile` is not available (#8234, fixes #8120,
@emillon)

- Disable background digests on Windows. This prevents an issue where
unremovable files would make dune crash when the shared cache is enabled.
(#8243, fixes #8228, @emillon)

3.9.1 (2023-07-06)
------------------

Expand Down
5 changes: 4 additions & 1 deletion src/dune_config/config.ml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ let background_digests =
let t =
{ name = "background_digests"
; of_string = Toggle.of_string
; value = background_default
; value =
(match Platform.OS.value with
| Linux -> `Enabled
| _ -> `Disabled)
}
in
register t;
Expand Down

0 comments on commit a210c44

Please sign in to comment.