-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
*: fix regenerate.sh #7139
*: fix regenerate.sh #7139
Conversation
scripts/vet.sh
Outdated
@@ -119,7 +119,6 @@ grep "(SA1019)" "${SC_OUT}" | not grep -Fv 'XXXXX PleaseIgnoreUnused | |||
XXXXX Protobuf related deprecation errors: | |||
"github.com/golang/protobuf | |||
.pb.go: | |||
grpc_testing_not_regenerate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Staticcheck is staying within the module?
Ugh, should we be running it for every go.mod
then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right. Let's track this here #7141
@@ -26,6 +26,6 @@ import ( | |||
"google.golang.org/grpc/internal/channelz" | |||
) | |||
|
|||
func sockoptToProto(skopts *channelz.SocketOptionData) []*channelzpb.SocketOption { | |||
func sockoptToProto(_ *channelz.SocketOptionData) []*channelzpb.SocketOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to change this here but there is even an even more simplified version:
func sockoptToProto(*channelz.SocketOptionData) []*channelzpb.SocketOption {
vet.sh
was failing in macOS. The logger defined in channelz/internal/protoconv package was not used when build on non_linux machines, which caused staticcheck to output this:also fixes the go_package for grpc_testing_not_regenerate proto
RELEASE NOTES: none