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
I think you should know better, I also found an unfinished business inside the code,thanks you
// AddErrorDefs Adds google.rpc.Status and google.protobuf.Any// to registry (used for error-related API responses)funcAddErrorDefs(reg*descriptor.Registry) error {
// load internal protosany, _:=legacydescriptor.MessageDescriptorProto(&anypb.Any{})
any.SourceCodeInfo=new(descriptorpb.SourceCodeInfo)
status, _:=legacydescriptor.MessageDescriptorProto(&statuspb.Status{})
status.SourceCodeInfo=new(descriptorpb.SourceCodeInfo)
// TODO(johanbrandhorst): Use new conversion later when possible// any := protodesc.ToFileDescriptorProto((&anypb.Any{}).ProtoReflect().Descriptor().ParentFile())// status := protodesc.ToFileDescriptorProto((&statuspb.Status{}).ProtoReflect().Descriptor().ParentFile())returnreg.Load(&pluginpb.CodeGeneratorRequest{
ProtoFile: []*descriptorpb.FileDescriptorProto{
any,
status,
},
})
}
The text was updated successfully, but these errors were encountered:
github.com/golang/protobuf has been marked as deprecated, and the dependency seems to be referenced in the current code.
I have noticed a pr that could not be fully replaced due to rules_go, and I was wondering if this work can now continue?
#1358
@johanbrandhorst
I think you should know better, I also found an unfinished business inside the code,thanks you
The text was updated successfully, but these errors were encountered: