【发布时间】:2022-01-22 01:47:01
【问题描述】:
你如何指定一个目录 - 只有当我将我的 helloworld.proto 放在名为 protos 的文件夹中时,以下操作才有效
protoc --dart_out=. -Iprotos helloworld.proto
protos: warning: directory does not exist.
helloworld.proto: File does not reside within any path specified using --proto_path (or -I). You must specify a --proto_path which encompasses this file. Note that the proto_path must be an exact prefix of the .proto file names -- protoc is too dumb to figure out when two paths (e.g. absolute and relative) are equivalent (it's harder than you think).
【问题讨论】: