cue-sh / cfn-cue

Apache License 2.0
18 stars 2 forks source link

Fix issues with recursive structs #2

Closed jlongtine closed 3 years ago

jlongtine commented 3 years ago

These structs have recursive definitions:

And cfn-cue's generation doesn't correctly account for recursive structs, so we create an infinite stack of function calls trying to create the structure of these things in CUE.

We should instead note when we have recursive structs, and build the clean CUE version of them.

jlongtine commented 3 years ago

Fixed in https://github.com/cue-sh/cfn-cue/commit/d31f0574ed80848044da3bd20c622796073b7829