You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since v1.2.9, using codecgen'erated code, decoding a slice of structs that are encoded as arrays into a slice of structs with missing trailing fields fails.
The code below works perfectly with version 1.2.8 with or without codecgen'erated code. It has been working well since (at least) v1.1.1.
Note that types.D does not have a Field2 field.
With 1.2.9 and 1.2.10, it works well without codecgen'erated code. But with codecgen'erated code (cd types && go generate), the decoding fails with msgpack decode error [pos 4]: only encoded map or array can be decoded into a struct.
I am using Go 1.19 with codecgen v1.2.10 (internal version 26) works with github.com/ugorji/go/codec library v1.2.8 +
Since v1.2.9, using codecgen'erated code, decoding a slice of structs that are encoded as arrays into a slice of structs with missing trailing fields fails.
The code below works perfectly with version 1.2.8 with or without codecgen'erated code. It has been working well since (at least) v1.1.1.
Note that
types.D
does not have aField2
field.With 1.2.9 and 1.2.10, it works well without codecgen'erated code. But with codecgen'erated code (
cd types && go generate
), the decoding fails withmsgpack decode error [pos 4]: only encoded map or array can be decoded into a struct
.I am using Go 1.19 with
codecgen v1.2.10 (internal version 26) works with github.com/ugorji/go/codec library v1.2.8 +
The text was updated successfully, but these errors were encountered: