grpc-restful
grpc-restful copied to clipboard
这个是我生成的`_ "proto/third_party/google/api"`,而万总生成的是`_ "google.golang.org/api"`
我的生成命令如下
protoc --include_imports --proto_path=. --descriptor_set_out=sum.pb sum.proto --go_out=./ sum.proto
生成文件关键信息如下
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.14.0
// source: sum.proto
package pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "proto/third_party/google/api"
生成的_ ”proto/third_party/google/api“,而当前库里面生成的是_ "google.golang.org/api"
请问下万总,是我哪里配置的问题吗?
这个问题我也遇到了,proto/third_party/google/api 这个路径是由项目中 /google/api/annotations 里定义的,会找不到,把它替换为官方的 annotations 文件就可以了