Groups
Sign in
Groups
Protocol Buffers
Conversations
About
Send feedback
Help
how to force go grpc plugin to use new import google.golang.org/protobuf/proto in generated pb.go file
16 views
Skip to first unread message
Serguei Bezverkhi
unread,
May 11, 2020, 10:52:17 AM
5/11/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Protocol Buffers
Hello,
When blah.proto file gets converted into blah.pb.go it automatically adds import statement for:
github.com/golang/protobuf/proto
that generates en error in the staticheck:
blah.pb.go:8:2: package
github.com/golang/protobuf/proto
is deprecated: Use the "
google.golang.org/protobuf/proto
" package instead. (SA1019)
I was wondering if there is a way to force go plugin to import a new package.
Thank you
Serguei
Sumit Agrawal
unread,
May 12, 2020, 4:17:53 AM
5/12/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Protocol Buffers
Try updating protoc-gen-go version to latest.
Reply all
Reply to author
Forward
0 new messages