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
I discovered that any errors that occur when unmarshaling inline structs get swallowed. I think this is happening because of this block of code in decode.go:
The call to deleteStructKeys overwrites the err variable from createDecodedNewValue before it has been checked. Perhaps this is as simple as adding a missing colon.
The text was updated successfully, but these errors were encountered:
While trying to implement a custom marshaler/unmarshaler for durations: https://play.golang.org/p/TQnD5pV-381
I discovered that any errors that occur when unmarshaling inline structs get swallowed. I think this is happening because of this block of code in
decode.go
:https://github.com/goccy/go-yaml/blob/v1.9.2/decode.go#L984
The call to
deleteStructKeys
overwrites the err variable fromcreateDecodedNewValue
before it has been checked. Perhaps this is as simple as adding a missing colon.The text was updated successfully, but these errors were encountered: