-
Notifications
You must be signed in to change notification settings - Fork 349
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
Latest versions don't import google proto files automatically #294
Comments
Is this caused by #283? |
Yes, it is. |
Right. In #283, @emil-e quoted the google protoc docs that, AFAIU, the new behavior is more correct... However, it does seem like a large breaking change, and I think has also silently broken ts-proto's integration tests, i.e. for tests like To fix @emil-e I'm thinking we need to either revert your change, or at least make exceptions for any What would be safer is putting your change behind a flag, like What do you think? |
I can confirm the appearance of a bug in version 1.79.8. I use the standard protobuff wrappers.proto file in my project. Prior to version 1.79.8, the assembly went smoothly. |
I don't think one should have to manually specify any of the Google protobuf files since as far as I know, you don't have to do that for any of the officially supported languages. I believe the reason that those implementations don't have this problem is that the protobuf runtime libraries have those types included in the library itself. I don't know if this is practical for Putting the new behavior behind a flag would work fine for our use cases but on pure principle, it's best to have the goal that correct behavior is the default, at least in the long run. But it's up to you, of course. |
I think it is better to leave an option to choose between different behaviors for the developer |
Guys, I can try implementing an option by myself if you show me an example PR where an option is implemented |
Fixes stephenh#294. This commit puts changes from stephenh#283 behind the flag.
🎉 This issue has been resolved in version 1.81.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Trying to generate the messages with
google.protobuf
types used- there are links on them on code, but they are no.ts
files generated for them anymore. Saw no breaking changes in latest 5 versionsThe text was updated successfully, but these errors were encountered: