Skip to content

buf v2 compiles protobuf file and generates golang code. buf v2 cannot obtain the protoc version number. #3913

Closed

Description

@kkangxu

1.compile by buf v2:

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.6
// protoc (unknown)

2.compile by protoc:

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.6
// protoc v6.31.1

Activity

  1. nicksnyder commented on Jul 7, 2025

    @nicksnyder
    Member

    Buf has its own compiler, so there is no relevant protoc version to include in generated files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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