Mirror of https://github.com/cue-lang/cue cuelang.org
cue go
Something went wrong. Try again.
protobuf/jsonpb: fix panic when decoding non-string bytes master
``` exec cue eval schema.cue json+pb: data.json -- schema.cue -- t: bytes @protobuf(1, bytes) -- data.json -- {"t": 42} ``` This would panic because of a logic error in jsonpb/decoder.go Signed-off-by: Matthew Sackman <matthew@cue.works> Change-Id: Ie9c0bf1670a01f3223fb85d354a36ff1dfacedda Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1234625 TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
Author Matthew Sackman Date (Apr 1, 2026, 11:17 AM UTC) Commit cdc175b7 cdc175b7b2f79bc68189194c5a897945a7aaa626 Parent f48f1de5 f48f1de5b232167b94b58bbf6ea2846a09acda81