Skip to content

*: update prost to 0.11 #595

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

Merged
merged 3 commits into from
Nov 1, 2022
Merged

*: update prost to 0.11 #595

merged 3 commits into from
Nov 1, 2022

Conversation

BusyJay
Copy link
Member

@BusyJay BusyJay commented Oct 31, 2022

Since 0.11, prost-build never bundles protoc binary anymore. To avoid requiring protoc for grpcio-proto users, we bundle the sources instead of generating at compile time. This can lead to potential problems like:

  • Miss match version between generating tools and runtime
  • Repository becomes bloated

But there seems to be no better alternative.

Since this PR when using prost with grpcio, protoc is also required in PATH.

This PR also removes protobuf-build dependencies. From now on, it will be easier to publish new version of grpcio-compiler.

Close #545.

Since 0.11, prost-build never bundles protoc binary anymore. To avoid
requiring protoc for grpcio-proto users, we bundle the sources instead
of generating at compile time. This can lead to potential problems like:
- Miss match version between generating tools and runtime
- Repository becomes bloated

But there seems to be no better alternative.

Signed-off-by: Jay Lee <[email protected]>
@BusyJay BusyJay requested review from sticnarf and tabokie October 31, 2022 07:57
Signed-off-by: Jay Lee <[email protected]>
@@ -443,3 +443,5 @@ pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescripto
})
}
}

pub use super::health_grpc::*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious about the small structure change. Is this line added by hand?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BusyJay BusyJay merged commit 152ad49 into tikv:master Nov 1, 2022
@BusyJay BusyJay deleted the update-prost branch November 1, 2022 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove protobuf-build completely
2 participants