mransan / ocaml-protoc

A Protobuf Compiler for OCaml
https://mransan.github.io/ocaml-protoc/
MIT License
179 stars 33 forks source link

Parsing of Pb_options according to protobuf schema #245

Closed Lupus closed 5 months ago

Lupus commented 5 months ago

@c-cube could you please take a look? This is required for further upstreaming of validation generator.

c-cube commented 5 months ago

I can look, but I've also been slowly trying to fix integration tests on master (which were silently broken). Would you look at #243 in the mean time?

c-cube commented 5 months ago

Right now, on my branch (and on this rebased on my branch) dune build src/tests/integration-tests/test_make.ml fails, and I bisected it back to either:

which might have broken packed repeated fields? :/

Lupus commented 5 months ago

Right now, on my branch (and on this rebased on my branch) dune build src/tests/integration-tests/test_make.ml fails, and I bisected it back to either:

which might have broken packed repeated fields? :/

Yeah, something is wrong, I've got a repro, looking into this.

c-cube commented 5 months ago

merged #243 which conflicts with this, but we're close, I think :).

Lupus commented 5 months ago

Okay, I think I fixed it. This PR includes a small unrelated commit that forces compilation of option_processing.proto, and a fix to duplicate id fields in that file... I hope it's fine to have this extra commit on this PR :)

c-cube commented 5 months ago

It's great! Look at that, it even passes integration tests :grin: .