You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ protoc -I. -I=../declarations/postmark-sender --gotemplate_out=debug=true:./test/ ../declarations/postmark-sender/postmark.proto
WARNING: Package "github.com/golang/protobuf/protoc-gen-go/generator" is deprecated.
A future release of golang/protobuf will delete this package,
which has long been excluded from the compatibility promise.
$ ls test/
I also tried to put the template directory in:
$ protoc -I. -I=../declarations/postmark-sender --gotemplate_out=template_dir=templates,debug=true:test ../declarations/postmark-sender/*.proto
WARNING: Package "github.com/golang/protobuf/protoc-gen-go/generator" is deprecated.
A future release of golang/protobuf will delete this package,
which has long been excluded from the compatibility promise.
$ ls test/
I also tried to put the template directory and output directory in:
$ protoc -I=../declarations/postmark-sender --gotemplate_out=template_dir=templates,debug=true,destination_dir=./test/:test ../declarations/postmark-sender/*.proto
WARNING: Package "github.com/golang/protobuf/protoc-gen-go/generator" is deprecated.
A future release of golang/protobuf will delete this package,
which has long been excluded from the compatibility promise.
$ ls test
The text was updated successfully, but these errors were encountered:
I encountered a similar problem and realized that by default protoc-gen-gotemplate does not process .proto files that don't contain a service -- I resolved this by adding the "all=true" option as shown in the README. If your .proto file doesn't contain a service, this is probably what's going on.
$ ls test/
I also tried to put the template directory in:
$ protoc -I. -I=../declarations/postmark-sender --gotemplate_out=template_dir=templates,debug=true:test ../declarations/postmark-sender/*.proto
WARNING: Package "github.com/golang/protobuf/protoc-gen-go/generator" is deprecated.
A future release of golang/protobuf will delete this package,
which has long been excluded from the compatibility promise.
$ ls test/
I also tried to put the template directory and output directory in:
$ ls test
The text was updated successfully, but these errors were encountered: