cuelang.org/go@v0.10.1/cue/testdata/packages/embed.txtar (about) 1 exec cue eval ./pkg:foo 2 3 -- cue.mod/module.cue -- 4 module: "mod.test" 5 language: version: "v0.9.0" 6 -- in.cue -- 7 package foo 8 9 import "mod.test/pkg:bar" 10 11 bar 12 z: 3 13 -- pkg/bar.cue -- 14 package bar 15 16 import "mod.test/pkg:baz" 17 18 foo: { 19 baz 20 y: 2 21 } 22 foo 23 -- pkg/baz.cue -- 24 package baz 25 26 x: 1 27 -- out/eval/stats -- 28 Leaks: 2 29 Freed: 9 30 Reused: 6 31 Allocs: 5 32 Retain: 4 33 34 Unifications: 11 35 Conjuncts: 25 36 Disjuncts: 13 37 -- out/evalalpha -- 38 (struct){ 39 z: (int){ 3 } 40 foo: (struct){ 41 y: (int){ 2 } 42 x: (int){ 1 } 43 } 44 y: (int){ 2 } 45 x: (int){ 1 } 46 } 47 -- diff/-out/evalalpha<==>+out/eval -- 48 diff old new 49 --- old 50 +++ new 51 @@ -1,9 +1,9 @@ 52 (struct){ 53 + z: (int){ 3 } 54 foo: (struct){ 55 - x: (int){ 1 } 56 y: (int){ 2 } 57 + x: (int){ 1 } 58 } 59 - x: (int){ 1 } 60 y: (int){ 2 } 61 - z: (int){ 3 } 62 + x: (int){ 1 } 63 } 64 -- diff/todo/p3 -- 65 Reordering 66 -- out/eval -- 67 (struct){ 68 foo: (struct){ 69 x: (int){ 1 } 70 y: (int){ 2 } 71 } 72 x: (int){ 1 } 73 y: (int){ 2 } 74 z: (int){ 3 } 75 } 76 -- out/compile -- 77 --- in.cue 78 { 79 〈import;"mod.test/pkg:bar"〉 80 z: 3 81 }