compose-go icon indicating copy to clipboard operation
compose-go copied to clipboard

`UlimitsConfig.MarshalYAML` is incorrect

Open horeilly1101 opened this issue 3 years ago • 1 comments

See https://github.com/compose-spec/compose-go/blob/master/types/types.go#L790-L796

When used with yaml.Marshal and "gopkg.in/yaml.v3", this causes an infinite loop.

To reproduce:

yaml.Marshal(&types.UlimitsConfig{Soft: 123})

horeilly1101 avatar Apr 28 '22 20:04 horeilly1101

we indeed don't support yaml.v3 (yet), see https://github.com/compose-spec/compose-go/pull/153

ndeloof avatar Apr 29 '22 13:04 ndeloof