Skip to content

encoding.GetCodec(proto.Name) broke in 1.66.0 #7569

Closed
@ash2k

Description

@ash2k

What version of gRPC are you using?

1.66.0

What version of Go are you using (go version)?

1.23.0

What operating system (Linux, Windows, …) and version?

macOS

What did you do?

import (
  "google.golang.org/grpc/encoding/proto"
  "google.golang.org/grpc/encoding"
)

var protoCodec = encoding.GetCodec(proto.Name)

What did you expect to see?

Valid proto codec in the variable.

What did you see instead?

Updated from 1.65.0 to 1.66.0 and tests panicked.

The variable is nil.

This is obviously a breaking change that will affect people. I don't mind, I'm going to change my code to use v2 codecs, so it's more of a FYI. Really looking forward to the performance improvements of new codecs.

Metadata

Metadata

Assignees

Labels

Area: RPC FeaturesIncludes Compression, Encoding, Attributes/Metadata, Interceptors.Type: Bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions