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