Skip to content

Commit

Permalink
rename Path.unlink_status to Path.unlink
Browse files Browse the repository at this point in the history
Signed-off-by: Etienne Millon <me@emillon.org>
  • Loading branch information
emillon committed Dec 22, 2023
1 parent 3d39203 commit ef89dbf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion otherlibs/stdune/src/path.ml
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ module Build = struct
let of_local t = t
let chmod t ~mode = Unix.chmod (to_string t) mode
let lstat t = Unix.lstat (to_string t)
let unlink_status t = Fpath.unlink (to_string t)
let unlink t = Fpath.unlink (to_string t)
let unlink_no_err t = Fpath.unlink_no_err (to_string t)
let to_dyn s = Dyn.variant "In_build_dir" [ to_dyn s ]
end
Expand Down
2 changes: 1 addition & 1 deletion otherlibs/stdune/src/path.mli
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ module Build : sig
val chmod : t -> mode:int -> unit

val lstat : t -> Unix.stats
val unlink_status : t -> Fpath.unlink_status
val unlink : t -> Fpath.unlink_status
val unlink_no_err : t -> unit

module Table : Hashtbl.S with type key = t
Expand Down
2 changes: 1 addition & 1 deletion src/dune_engine/build_system.ml
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ end = struct
maybe_async_rule_file_op (fun () ->
let remove_target_dir dir = Path.rm_rf (Path.build dir) in
let remove_target_file path =
match Path.Build.unlink_status path with
match Path.Build.unlink path with
| Success -> ()
| Is_a_directory ->
(* If target changed from a directory to a file, delete
Expand Down

0 comments on commit ef89dbf

Please sign in to comment.