github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/buf.gen.yaml (about)

     1  #!/usr/bin/env -S buf generate -o pkg/proto proto/internal --template
     2  ---
     3  version: 'v1'
     4  managed:
     5    enabled: true
     6    go_package_prefix:
     7      default: 'github.com/authzed/spicedb/pkg/proto'
     8      except:
     9        - 'buf.build/envoyproxy/protoc-gen-validate'
    10        - 'buf.build/authzed/api'
    11        - 'buf.build/googleapis/googleapis'
    12  plugins:
    13    - name: 'go'
    14      path: ["go", "run", "google.golang.org/protobuf/cmd/protoc-gen-go"]
    15      out: '.'
    16      opt: 'paths=source_relative'
    17    - name: 'go-grpc'
    18      out: '.'
    19      path: ["go", "run", "google.golang.org/grpc/cmd/protoc-gen-go-grpc"]
    20      opt: 'paths=source_relative'
    21    - name: 'go-vtproto'
    22      path: ["go", "run", "github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto"]
    23      out: '.'
    24      # To generate pooling methods, you must add an additional `pool=fully/qualified.ProtoMessageType`
    25      opt: 'paths=source_relative,features=marshal+unmarshal+size+clone+pool+equal'
    26    - name: 'validate'
    27      path: ["go", "run", "github.com/envoyproxy/protoc-gen-validate"]
    28      out: '.'
    29      opt: 'paths=source_relative,lang=go'