-
Notifications
You must be signed in to change notification settings - Fork 175
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
Stub structure and Methods will relay on protobuf API V2 #595
Comments
The README has a blurb at the top talking about this. I am working on a v2, and it's nearly done (https://github.com/jhump/protoreflect/tree/v2). But, also, as of v1.15, interop between this repo and the protobuf API v2 should work fine. So it should be easy to continue using this repo and also use the new protobuf API v1 support for reflection, descriptors, and dynamic messages. |
I have an issue with the conversion between V1 message and V2. but i'll try to find a way to fix it. Thanks :) |
I had hoped to cut an initial release candidate in 2023 😞 I think the repo is really close. There may be some recent-ish changes on the |
Hi, |
@avivbaron, sure, you can already try it out. There have been no tagged releases on that work-in-progress branch, so you have to pull it in using a commit sha. This would pull in the current head of that branch:
The package structure is a little different. There is no longer any |
Thank you very much :) |
Hey, I'm using the protoparse.Parser function in my project and I saw that there isn't parser package or function in your new version. can you help me with replacing it correctly? Thanks :) |
Thanks again for helping me a lot :) |
@avivbaron, sorry, I don't have enough context. What exactly are you doing? Most of the protocompile API is in terms of |
U r right. it was my mistake. |
@avivbaron, why are you calling the linker directly? What is it you are doing that prevents you from using the main |
Thanks a lot! I'm done with the migration to the new protobuf modules all thanks to you :) |
Hi, |
@Shnitzelil, I'm afraid not. I've hit some snags in the way v2 of the repo wants to decorate instances of The main issue is whether the protobuf-go project will continue to allow external implementations of the descriptor interfaces in the future. While the v2 branch works just fine today, the current maintainers of protobuf-go are considering changing that -- having their internal code be able to type-assert to their internal concrete implementations. That means nothing outside the package would be able to implement the interface (without risk of type-assertion panics); that would break stuff in my v2 branch, which provides wrappers/decorators that embed their instances. I'm still working with them to see the direction they'll take. But, unfortunately, chances are good that the direction will mean I need to make a good bit of changes to the v2 branch. Once that all settles, only then can I provide a release. Sorry for the delays. |
Hey, since the old protobuf package of google is already deprecated, I was trying to base my code only on the new package(google.golang.org/protobuf) and everything looks fine but since Im using and relaying on your Stub structre and methods which relay on the old package I'm a bit stuck with finding how to replace it appropriately.
Do you have any suggestions on how to replace it correctly or maybe you already working on adapting it to V2 ? :)
Thanks
The text was updated successfully, but these errors were encountered: