Skip to content

Non deterministic code gen #573

@robin-anil

Description

@robin-anil

protobuf.js version: 6.2.1

Runpbjs -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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions