Skip to content

protoc-gen-go: disable recording the versions in generated file #1185

@bmhatfield

Description

@bmhatfield

In the v2 version of protoc-gen-go, genGeneratedHeader now outputs a versions section.

We check in our generated protobuf files. This versions output is very problematic for us, as any time there's a minor version bump in protoc (which upgrades automatically via homebrew) all of our generated protobuf files are now different. In order to keep un-necessary changes down, and to avoid diff "flapping", everyone must be on the same minor release of protoc-gen-go and protoc, even if it has no effect on functionality or the actual generated code.

Can we remove that feature or at least offer an option to disable version output?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions