srikrsna / protoc-gen-gotag

Add custom struct tags to protobuf generated structs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't find pb file error

cmzz opened this issue · comments

commented

buf.gen.yaml

version: v1
plugins:
  - name: go
    out: .
    opt:
      - paths=source_relative
  - name: gotag
    out: .
    opt:
      - outdir=.
      - paths=source_relative

file trees:

proto/
---   buf.gen.yaml
---   buf.lock
---   buf.yaml
---   eventmsg.proto

got error:

[error] [gotag]: open eventmsg.pb.go: no such file or directory
Failure: failed to generate plugins concurrently: failed to execute plugins concurrently: failed to generate: exit status 1

commented

If I remove gotag, can generate a pb.go file success in current dir

commented

buf version: rc1
gotag version: 0.6.2

Please have a look at the way buf is setup in the project