-
Notifications
You must be signed in to change notification settings - Fork 26
Upgrade dependencies and bundle protoc.exe #146
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
Conversation
Converted back to draft as I have to figure out a way to bundle |
For CI, perhaps use -
I would anticipate that for the local development experience, have a section for requiring the tool to be installed - I would encourage with Chocolately https://community.chocolatey.org/packages/protoc |
Agree with the above suggesions by @justin-lovell |
The |
I am personally not a huge fan of any additional step to simply running |
In rubyland there is a convention that you can run a
Otherwise adding it to the |
I like that alternative. Is your thinking similar to this build.rs? It looks neat. |
Thanks for the feedback! @rurounijones Such a I looked into downloading it, but after adding 5 dependencies just to download and extract protoc, I didn't like the idea too much anymore.
Which made this look like a way better/easier solution. I've updated the PR accordingly. I've created the dependency under my own Github user for now https://github.com/rkusa/protoc-bundled. We could also move it to I'd actually tend to keeping it as a Git dependency and not publish it to https://crates.io/. Instead of rolling our own dependency, we could also use something like https://lib.rs/crates/protoc-bin-vendored, but I am not too keen on pulling executables from yet another stranger. In the future we could move to building protoc instead of bundling/downloading it. This currently requires What do you think? |
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.
The current dependency in a separate dependency only accessible via git sounds like a good solution.
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.
learned a lot from this PR. cheers.
Upgrade dependencies. This includes major upgrades. Unfortunately, the dependency that generates code out of proto files isn't bundling
protoc
anymore, so I am afraid we have to bundle it ourselves (or keep using the older version). Anyone against bundlingprotoc.exe
in the repo?