-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Non deterministic code gen #573
Comments
Unfortunately, I don't know where this could come from. Do you know if this affects specific parts / features of the generated output more than others? |
I cannot discern where this is stemming from. I would think that a sorting would solve this issue. |
Had an idea: pbjs is using async |
👍 Let me know when the fix is pushed. I will try it. |
@dcodeIO just add a --sync flag or something |
Let me know if this fixes it! |
Verified to be fixed |
protobuf.js version: 6.2.1
Run
pbjs -p <path-to-protobuf> -t json -o something.json
Output is not deterministic on every run.
Please ensure that the tree traversal and code generated is in a sorted and determinstic fashion.
This creates huge diffs on every checkin. This was not the case in v5.
I am upgrading a 50K line client side code base with over 100 protos from 5 to 6.
The text was updated successfully, but these errors were encountered: