进口;google/api/annotations.proto“;找不到或有错误。如何将其添加为依赖项?
打开文档后,我发现自己陷入了生成grpc网关的第四步 也就是说,当添加以下行时,事情就会分崩离析:进口;google/api/annotations.proto“;找不到或有错误。如何将其添加为依赖项?,go,protocol-buffers,grpc,Go,Protocol Buffers,Grpc,打开文档后,我发现自己陷入了生成grpc网关的第四步 也就是说,当添加以下行时,事情就会分崩离析: import "google/api/annotations.proto"; 文档中说,您需要向protoc编译器提供所需的第三方protobuf文件——但实际上并不是这样做的 如何添加google/api/annotations.proto作为依赖项?我通过添加https://github.com/grpc-ecosystem/grpc-gateway/tree/maste
import "google/api/annotations.proto";
文档中说,您需要向protoc编译器提供所需的第三方protobuf文件
——但实际上并不是这样做的
如何添加
google/api/annotations.proto
作为依赖项?我通过添加https://github.com/grpc-ecosystem/grpc-gateway/tree/master/third_party/googleapis
并将其内容保存到我的项目根目录中
感觉不对,但很明显