github.com/solo-io/cue@v0.4.7/doc/tutorial/basics/4_references/85_cycleref.txt (about) 1 cue eval cycleref.cue 2 cmp stdout expect-stdout-cue 3 4 -- frontmatter.toml -- 5 title = "Cycles in Fields" 6 description = "" 7 8 -- text.md -- 9 Also, we know that unifying a field with itself will result in the same value. 10 Thus if we have a cycle between some fields, all we need to do is ignore 11 the cycle and unify their values once to achieve the same result as 12 merging them ad infinitum. 13 14 -- cycleref.cue -- 15 labels: selectors 16 labels: {app: "foo"} 17 18 selectors: labels 19 selectors: {name: "bar"} 20 21 -- expect-stdout-cue -- 22 labels: { 23 name: "bar" 24 app: "foo" 25 } 26 selectors: { 27 name: "bar" 28 app: "foo" 29 }