-
Notifications
You must be signed in to change notification settings - Fork 527
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
#726 breaks build #747
Comments
Would it be possible to provide a reproduction proto file I can play around with? |
I will try to come up with a repro build.rs and proto file(s). |
I just need the proto file really, I can create a test to reproduce and look at it. We may need to yank 0.11.2 then and either fix or remove this commit. Thanks! |
Hmm, it's not so easy to come up with a repro from scratch, it will take a while I guess :-( |
All good! This has been a really tricky feature that I already had to revert once so getting that edge case test case would be super valuable! |
This happens for protos referencing a different package from their name, i.e. something like foo/v1/bar.proto where bar.proto defines `package foo.v1`. Fixes tokio-rs#747
I could pin it down. As written in the PR, it happens for protos that specify a parent |
@LucioFranco could you reproduce this issue? |
I have not had the time to try it out yet but I think for your PR adding a test would be very helpful. |
The issue is actually a combination of the mentioned path hierarchy as well as the fact that we skip generating one particular service causing the output to be empty and hence the module to be removed. So, I will close this issue as a very peculiar case. |
We have a
build.rs
to add some additional methods to services. Upgrading from 0.11.1 to 0.11.2 caused this (actual binary names and paths redacted)I could pinpoint the regressing behaviour to the change commited with #726 however I do not see yet how this causes the
unwrap
to fail. The crash traces fromin
build.rs
toin the
prost-build/src/lib.rs
.The text was updated successfully, but these errors were encountered: