Skip to content

Commit b85b189

Browse files
committed
reflect/protodesc: add support for edition unstable
Authored by Rachel Goldfinger. Change-Id: I57d211412850cc8e58f7d905770e82d2570e50f3 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/728681 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Lasse Folger <lassefolger@google.com>
1 parent cb88647 commit b85b189

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

reflect/protodesc/editions.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ func toEditionProto(ed filedesc.Edition) descriptorpb.Edition {
4646
return descriptorpb.Edition_EDITION_2023
4747
case filedesc.Edition2024:
4848
return descriptorpb.Edition_EDITION_2024
49+
case filedesc.EditionUnstable:
50+
return descriptorpb.Edition_EDITION_UNSTABLE
4951
default:
5052
panic(fmt.Sprintf("unknown value for edition: %v", ed))
5153
}

0 commit comments

Comments
 (0)