File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff 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 * () =
Original file line number Diff line number Diff 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
3939val 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]. *)
Original file line number Diff line number Diff 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
1414let () =
1515 let () = Array. iter print_endline Sys. argv in
You can’t perform that action at this time.
0 commit comments