Skip to content

protoc-gen-go: emit versioning information #524

Closed
@dsnet

Description

@dsnet

The generator currently emits the following:

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: extension_user/extension_user.proto

We should improve this by adding information about the versions:

  1. What go toolchain was used (e.g., go1.9.6)
  2. What version of protoc was used (e.g., libprotoc 3.5.1)
  3. What version of protoc-gen-go was used

The 3rd item is harder to do, but the upcoming version control features in the Go toolchain will help with this. My understanding is that one of the features it will provide is a cryptographic signing of all the Go packages that went into building that binary.

For now, I would be happy to just see items 1 and 2 start being encoded in the generated infolog.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions