-
Notifications
You must be signed in to change notification settings - Fork 1k
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
After updating to v0.7 with prost-types v0.10 "google.protobuf.rs" is not available #964
After updating to v0.7 with prost-types v0.10 "google.protobuf.rs" is not available #964
Comments
Looks related to tokio-rs/prost@c577d3f |
@g0hl1n do you have the protobuf you're trying to build? I'd like to see if I can reproduce this bug. |
It seems it is related to
Where building with the following returns the described include error:
The used proto is:
|
@LucioFranco were you able to reproduce the problem or do you need more information from me? |
I have not had a chance to full debug it and its not exactly obvious to me. I would suggest as a work around for the moment I would swap out the use of Empty for your own |
Replacing Empty in an existing API isn't that easy. Furthermore it also affects other well-known-types like Duration and Wrappers. 😞 |
You're totally right, let me try to take a look at this soon. Even though there is a work around I think we should solve this. |
fyi, i tried reverting tokio-rs/prost@c577d3f on prost's v0.10.1 tag for the |
@LucioFranco I've added a test for this problem in my repository and bisected it through the history (
Nonetheless it must be somehow related to tonic as running the same test with prost/prost-types v0.9.0 on current master also fails. |
Thanks for the fix @LucioFranco! When now adding the patch to my Cargo.toml it works 🥳
When do you expect a prost bugfix release (v0.10.2) to happen? |
Its out now 😄 thanks for the help debugging this |
Bug Report
Version
Platform
Fedora release 35 (Thirty Five)
Linux 5.16.16-200.fc35.x86_64
Crates
Description
After updating to tonic{,-build} v0.7 and prost{,-types} v0.10 cargo build fails with
build.rs calls:
The
google.protobuf.rs
isn't available in the target directory:Using tonic-build's
.compile_well_known_types(true)
instead of prost-types works.The text was updated successfully, but these errors were encountered: