Bump github.com/golang/protobuf v1.5.4, google.golang.org/protobuf v1.33.0

This commit is contained in:
Jordan Liggitt
2024-03-06 09:47:28 -05:00
parent 546f7c3086
commit c6673d2346
123 changed files with 4118 additions and 1417 deletions

View File

@@ -17,7 +17,7 @@ import (
// EnforceUTF8 reports whether to enforce strict UTF-8 validation.
func EnforceUTF8(fd protoreflect.FieldDescriptor) bool {
if flags.ProtoLegacy {
if flags.ProtoLegacy || fd.Syntax() == protoreflect.Editions {
if fd, ok := fd.(interface{ EnforceUTF8() bool }); ok {
return fd.EnforceUTF8()
}