Skip to content

Commit 8d5db71

Browse files
Closer to style of main
Signed-off-by: Marek Kubica <[email protected]>
1 parent 85298bb commit 8d5db71

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/dune_rules/lock_rules.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -394,10 +394,10 @@ let copy_lock_dir ~target ~lock_dir ~deps ~files =
394394
let open Action_builder.O in
395395
Action_builder.deps deps
396396
>>> (Path.Set.to_list_map files ~f:(fun src ->
397-
let suffix = Path.drop_prefix_exn src ~prefix:lock_dir in
398-
let dst = Path.Build.append_local target suffix in
399-
let parent = Path.Build.parent_exn dst in
400-
Action.progn [ Action.mkdir parent; Action.copy src dst ])
397+
let dst =
398+
Path.drop_prefix_exn src ~prefix:lock_dir |> Path.Build.append_local target
399+
in
400+
Action.progn [ Action.mkdir (Path.Build.parent_exn dst); Action.copy src dst ])
401401
|> Action.concurrent
402402
|> Action.Full.make
403403
|> Action_builder.return)

0 commit comments

Comments
 (0)