Skip to content

Commit

Permalink
Sort filepaths for reproducibility (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
3Rafal authored Jun 28, 2023
1 parent b0374c4 commit 9a66b90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/file.ml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ let get_files ~extensions paths =
(String.concat ", " extensions)
in
Error (`Msg msg)
| _ -> Ok files
| _ -> Ok (List.sort Fpath.compare files)

let parse_impl sourcefile =
let file = Fpath.to_string sourcefile in
Expand Down
2 changes: 1 addition & 1 deletion lib/file.mli
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ val filename : t -> string

val get_files :
extensions:string list -> Fpath.t list -> (t list, Rresult.R.msg) result
(** [get_files ~extension dir] produces the list of all files with extension
(** [get_files ~extension dir] produces sorted list of all files with extension
[extension] inside [dir] *)

val parse_impl : t -> Ppxlib.Parsetree.structure
Expand Down

0 comments on commit 9a66b90

Please sign in to comment.