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 0f41c42 commit 377a859Copy full SHA for 377a859
src/dune_rules/lock_rules.ml
@@ -410,10 +410,10 @@ let copy_lock_dir ~target ~lock_dir ~deps ~files =
410
let open Action_builder.O in
411
Action_builder.deps deps
412
>>> (Path.Set.to_list_map files ~f:(fun src ->
413
- let suffix = Path.drop_prefix_exn src ~prefix:lock_dir in
414
- let dst = Path.Build.append_local target suffix in
415
- let parent = Path.Build.parent_exn dst in
416
- 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 ])
417
|> Action.concurrent
418
|> Action.Full.make
419
|> Action_builder.return)
0 commit comments