We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
main
1 parent 0dca51f commit 4edba3dCopy full SHA for 4edba3d
src/dune_rules/lock_rules.ml
@@ -436,10 +436,10 @@ let copy_lock_dir ~target ~lock_dir ~deps ~files =
436
let open Action_builder.O in
437
Action_builder.deps deps
438
>>> (Path.Set.to_list_map files ~f:(fun src ->
439
- let suffix = Path.drop_prefix_exn src ~prefix:lock_dir in
440
- let dst = Path.Build.append_local target suffix in
441
- let parent = Path.Build.parent_exn dst in
442
- Action.progn [ Action.mkdir parent; Action.copy src dst ])
+ let dst =
+ Path.drop_prefix_exn src ~prefix:lock_dir |> Path.Build.append_local target
+ in
+ Action.progn [ Action.mkdir (Path.Build.parent_exn dst); Action.copy src dst ])
443
|> Action.concurrent
444
|> Action.Full.make
445
|> Action_builder.return)
0 commit comments