Skip to content

Commit

Permalink
Merge pull request #387 from Leonidas-from-XIV/backport-starts-with
Browse files Browse the repository at this point in the history
Use `is_prefix` which is available in OCaml 4.10
  • Loading branch information
Leonidas-from-XIV authored May 1, 2023
2 parents 46b287f + 44fd36d commit fee4252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/lock.ml
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ let extract_source_config ~adjustment ~opam_monorepo_cwd ~opam_files

let raw_cli_args () =
match Array.to_list Sys.argv with
| _bin :: prefix :: args when String.starts_with ~prefix "lock" -> args
| _bin :: prefix :: args when Base.String.is_prefix ~prefix "lock" -> args
| _ -> assert false

let run (`Root root) (`Recurse_opam recurse) (`Build_only build_only)
Expand Down

0 comments on commit fee4252

Please sign in to comment.