Skip to content

Commit

Permalink
fix relative proto paths in command
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchol committed Dec 11, 2024
1 parent 92deafd commit 80cace1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/eio/arpaca/bin/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ let prepare proto_file_name include_dirs =
let { Pb_codegen_ocaml_type.proto_services; _ }, _ =
compile proto_file_name include_dirs false
in
let proto_file_name =
if not (String.contains proto_file_name '/') then proto_file_name
else List.hd @@ List.rev @@ String.split_on_char '/' proto_file_name
in
let proto_gen_module =
Pb_codegen_util.caml_file_name_of_proto_file_name ~proto_file_name
in
Expand Down

0 comments on commit 80cace1

Please sign in to comment.