-
Notifications
You must be signed in to change notification settings - Fork 13
use protoc with presence #108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
04c04e4 to
4183eeb
Compare
9ea91c4 to
7ab0b0c
Compare
1f823d4 to
f1ac22e
Compare
| - run: | | ||
| opam pin ocaml-protoc 3.0.1 -y -n | ||
| opam pin pbrt 3.0.1 -y -n | ||
| opam pin https://github.com/mransan/ocaml-protoc.git#5510694deffde13283742b8ad116fab61b65dfbc -y -n |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fyi a nice way to do this even for testing is using a pin-depends field in an *.opam.template file:
https://github.com/semgrep/semgrep/blob/develop/semgrep.opam.template#L17-L20
this gets picked up picked up by dune when it generates the opam file. Additionally, this will also get picked up by nix so you don't have to make the change to flake.nix you have
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that currently this opam package fails to install w/out this change
|
Finally getting around to trying this in semgrep, will report back in a week or so. |
This should be more compact on the wire, because presence tracking lets us know which fields were not set explicitly so we can avoid writing them entirely. It's also more compliant with other implementations of protobuf.