mirror of
https://github.com/nats-io/nats.go.git
synced 2025-10-17 22:21:36 +08:00

"encoders/protobuf/protobuf_enc.go:19:2: package github.com/golang/protobuf/proto is deprecated: Use the "google.golang.org/protobuf/proto" package instead." I have replaced and regenerated the testdata protobuf code. I have tested that if an app was built with the library before the change and would receive a message generated with the updated import it would work fine. However an app using the updated library would need to replace ``` reflect.DeepEqual(m1, m2) ``` with ``` reflect.DeepEqual(m1.ProtoReflect(), m2.ProtoReflect()) ``` The protobuf Message has different versions now. Not sure if this going to break things or not, but the github.com/golang/protobuf/proto is clearly marked as deprecated. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>