...
1exec cue eval ./pkg:foo
2
3-- cue.mod/module.cue --
4module: "mod.test"
5-- in.cue --
6package test
7
8import pkg2 "mod.test/foo/pkg1"
9
10#pkg1: pkg2.Object
11
12"Hello \(#pkg1)!"
13-- foo/pkg1/file.cue --
14package pkg1
15
16Object: "World"
17-- out/eval/stats --
18Leaks: 2
19Freed: 2
20Reused: 0
21Allocs: 4
22Retain: 3
23
24Unifications: 4
25Conjuncts: 5
26Disjuncts: 4
27-- out/eval --
28(string){
29 "Hello World!"
30 #pkg1: (string){ "World" }
31}
32-- out/compile --
33--- in.cue
34{
35 #pkg1: 〈import;"mod.test/foo/pkg1"〉.Object
36 "Hello \(〈0;#pkg1〉)!"
37}
View as plain text