cue-lang / cue

The home of the CUE language! Validate and define text-based and dynamic configuration
https://cuelang.org
Apache License 2.0
5.15k stars 297 forks source link

internal/core/convert: toposort: preserve order of fields from Go structs #3554

Open cuematthew opened 3 weeks ago

cuematthew commented 3 weeks ago

As discovered and discussed in https://review.gerrithub.io/c/cue-lang/cue/+/1202688/ the new toposort algorithm isn't honouring field orders when those fields come from Go structs.