Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staticcheck: deprecated warnings #208

Open
nkcr opened this issue Mar 8, 2022 · 0 comments
Open

Staticcheck: deprecated warnings #208

nkcr opened this issue Mar 8, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@nkcr
Copy link
Contributor

nkcr commented Mar 8, 2022

Staticcheck outputs some deprecated warning that will have to be adressed:

staticcheck ./...
internal/testing/mod.go:8:2: package github.com/golang/protobuf/descriptor is deprecated: See the "google.golang.org/protobuf/reflect/protoreflect" package for how to obtain an EnumDescriptor or MessageDescriptor in order to programatically interact with the protobuf type system.  (SA1019)
internal/testing/mod.go:9:2: package github.com/golang/protobuf/proto is deprecated: Use the "google.golang.org/protobuf/proto" package instead.  (SA1019)
internal/testing/mod.go:23:11: descriptor.Message is deprecated: The Descriptor method may not be generated by future versions of protoc-gen-go, meaning that this interface may not be implemented by many concrete message types.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:44:9: xxx_messageInfo_Certificate.Unmarshal is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:47:9: xxx_messageInfo_Certificate.Marshal is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:50:2: xxx_messageInfo_Certificate.Merge is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:53:9: xxx_messageInfo_Certificate.Size is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:56:2: xxx_messageInfo_Certificate.DiscardUnknown is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:59:33: proto.InternalMessageInfo is deprecated: Do not use; this type existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:89:9: xxx_messageInfo_CertificateAck.Unmarshal is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:92:9: xxx_messageInfo_CertificateAck.Marshal is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:95:2: xxx_messageInfo_CertificateAck.Merge is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:98:9: xxx_messageInfo_CertificateAck.Size is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:101:2: xxx_messageInfo_CertificateAck.DiscardUnknown is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:104:36: proto.InternalMessageInfo is deprecated: Do not use; this type existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:124:9: xxx_messageInfo_JoinRequest.Unmarshal is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:127:9: xxx_messageInfo_JoinRequest.Marshal is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:130:2: xxx_messageInfo_JoinRequest.Merge is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:133:9: xxx_messageInfo_JoinRequest.Size is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:136:2: xxx_messageInfo_JoinRequest.DiscardUnknown is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:139:33: proto.InternalMessageInfo is deprecated: Do not use; this type existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:172:9: xxx_messageInfo_JoinResponse.Unmarshal is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:175:9: xxx_messageInfo_JoinResponse.Marshal is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:178:2: xxx_messageInfo_JoinResponse.Merge is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:181:9: xxx_messageInfo_JoinResponse.Size is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:184:2: xxx_messageInfo_JoinResponse.DiscardUnknown is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:187:34: proto.InternalMessageInfo is deprecated: Do not use; this type existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:214:9: xxx_messageInfo_Message.Unmarshal is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:217:9: xxx_messageInfo_Message.Marshal is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:220:2: xxx_messageInfo_Message.Merge is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:223:9: xxx_messageInfo_Message.Size is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:226:2: xxx_messageInfo_Message.DiscardUnknown is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:229:29: proto.InternalMessageInfo is deprecated: Do not use; this type existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:261:9: xxx_messageInfo_Packet.Unmarshal is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:264:9: xxx_messageInfo_Packet.Marshal is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:267:2: xxx_messageInfo_Packet.Merge is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:270:9: xxx_messageInfo_Packet.Size is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:273:2: xxx_messageInfo_Packet.DiscardUnknown is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:276:28: proto.InternalMessageInfo is deprecated: Do not use; this type existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:301:9: xxx_messageInfo_Ack.Unmarshal is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:304:9: xxx_messageInfo_Ack.Marshal is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:307:2: xxx_messageInfo_Ack.Merge is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:310:9: xxx_messageInfo_Ack.Size is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:313:2: xxx_messageInfo_Ack.DiscardUnknown is deprecated: Do not use; this method existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:316:25: proto.InternalMessageInfo is deprecated: Do not use; this type existed for intenal-use only.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:326:2: proto.RegisterType is deprecated: Use protoregistry.GlobalTypes.RegisterMessage instead.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:327:2: proto.RegisterType is deprecated: Use protoregistry.GlobalTypes.RegisterMessage instead.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:328:2: proto.RegisterType is deprecated: Use protoregistry.GlobalTypes.RegisterMessage instead.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:329:2: proto.RegisterType is deprecated: Use protoregistry.GlobalTypes.RegisterMessage instead.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:330:2: proto.RegisterType is deprecated: Use protoregistry.GlobalTypes.RegisterMessage instead.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:331:2: proto.RegisterType is deprecated: Use protoregistry.GlobalTypes.RegisterMessage instead.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:332:2: proto.RegisterType is deprecated: Use protoregistry.GlobalTypes.RegisterMessage instead.  (SA1019)
mino/minogrpc/ptypes/overlay.pb.go:336:2: proto.RegisterFile is deprecated: Use protoregistry.GlobalFiles.RegisterFile instead.  (SA1019)
make: *** [lint] Error 1
@pierluca pierluca added the bug Something isn't working label Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants