Skip to content

Commit e80b7f8

Browse files
committed
Remove on flags on remove_residuals
1 parent bc056fd commit e80b7f8

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

lib/core/action.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ let store_cache ?(on = `Target) path cache =
230230
let* () = Eff.write_file ~on path sexp_str in
231231
Eff.log ~src:Eff.yocaml_log_src ~level:`Debug @@ Lexicon.cache_stored path
232232

233-
let remove_residuals ?(on = `Target) ~target cache =
233+
let remove_residuals ~target cache =
234+
let on = `Target in
234235
let open Eff.Syntax in
235236
let trace = Cache.trace cache in
236237
let* () =

lib/core/action.mli

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ type t = Cache.t -> Cache.t Eff.t
3232
production phases, an action is a function that takes a cache and returns
3333
the modified cache, wrapped in an effect. *)
3434

35-
val remove_residuals : ?on:Eff.filesystem -> target:Path.t -> t
36-
(** [remove_residuals ?on ~target] deletes files that were not created by any of
37-
the actions performed. *)
35+
val remove_residuals : target:Path.t -> t
36+
(** [remove_residuals ~target] deletes files that were not created by any of the
37+
actions performed. *)
3838

3939
val restore_cache : ?on:Eff.filesystem -> Path.t -> Cache.t Eff.t
4040
(** [restore_cache ?on path] Reads or initiates the cache in a given [path]. *)

test/e2e/bin/gen_residuals.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ let program () =
99
(Yocaml.Batch.iter_files
1010
(Yocaml.Path.rel [ "residuals" ])
1111
(Yocaml.Action.copy_file ~into:target)
12-
>=> Yocaml.Action.remove_residuals ~on ~target)
12+
>=> Yocaml.Action.remove_residuals ~target)
1313

1414
let () =
1515
let () = Array.iter print_endline Sys.argv in

0 commit comments

Comments
 (0)