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 85298bb commit 8d5db71Copy full SHA for 8d5db71
src/dune_rules/lock_rules.ml
@@ -394,10 +394,10 @@ let copy_lock_dir ~target ~lock_dir ~deps ~files =
394
let open Action_builder.O in
395
Action_builder.deps deps
396
>>> (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 ])
+ 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 ])
401
|> Action.concurrent
402
|> Action.Full.make
403
|> Action_builder.return)
0 commit comments