cuelang.org/go@v0.10.1/internal/core/export/testdata/selfcontained/issue2247.txtar (about)

     1  #inlineImports: true
     2  -- cue.mod/module.cue --
     3  module: "example.com"
     4  language: version: "v0.9.0"
     5  -- x.cue --
     6  import "example.com/t"
     7  
     8  f: t.p
     9  -- t/t.cue --
    10  package t
    11  
    12  p: {
    13  	c: [int]
    14  	d: [c][0]
    15  	// TODO: simplify these:
    16  	e: {out: c}.out
    17  	f: {out: q}.out
    18  	g: {out: q}.out
    19  
    20  	h: {out: r: s: string}.out
    21  	i: h.r
    22  	j: h.r.s
    23  
    24  	k: r.k
    25  	l: r.k.l
    26  }
    27  
    28  q: {
    29  	x: [...int]
    30  }
    31  
    32  r: {out: k: l: string}.out
    33  
    34  -- out/self/default --
    35  import "example.com/t"
    36  
    37  f: t.p
    38  -- out/self-v3-noshare/expand_imports --
    39  f: P
    40  
    41  //cue:path: "example.com/t".p
    42  let P = {
    43  	c: [int]
    44  	d: [c][0]
    45  	// TODO: simplify these:
    46  	e: {
    47  		out: c
    48  	}.out
    49  	f: {
    50  		out: Q
    51  	}.out
    52  	g: {
    53  		out: Q
    54  	}.out
    55  	h: {
    56  		out: {
    57  			r: {
    58  				s: string
    59  			}
    60  		}
    61  	}.out
    62  	i: h.r
    63  	j: h.r.s
    64  	k: K
    65  	l: K.l
    66  }
    67  
    68  //cue:path: "example.com/t".q
    69  let Q = {
    70  	x: [...int]
    71  }
    72  
    73  //cue:path: "example.com/t".r.k
    74  let K = {
    75  	l: string
    76  }
    77  -- diff/-out/self-v3-noshare/expand_imports<==>+out/self/expand_imports --
    78  diff old new
    79  --- old
    80  +++ new
    81  @@ -1,4 +1,7 @@
    82  -f: {
    83  +f: P
    84  +
    85  +//cue:path: "example.com/t".p
    86  +let P = {
    87   	c: [int]
    88   	d: [c][0]
    89   	// TODO: simplify these:
    90  -- diff/self/todo/p2 --
    91  Unnecessary let indirection.
    92  We assign p2, because the differences only appear with sharing off.
    93  -- out/self/expand_imports --
    94  f: {
    95  	c: [int]
    96  	d: [c][0]
    97  	// TODO: simplify these:
    98  	e: {
    99  		out: c
   100  	}.out
   101  	f: {
   102  		out: Q
   103  	}.out
   104  	g: {
   105  		out: Q
   106  	}.out
   107  	h: {
   108  		out: {
   109  			r: {
   110  				s: string
   111  			}
   112  		}
   113  	}.out
   114  	i: h.r
   115  	j: h.r.s
   116  	k: K
   117  	l: K.l
   118  }
   119  
   120  //cue:path: "example.com/t".q
   121  let Q = {
   122  	x: [...int]
   123  }
   124  
   125  //cue:path: "example.com/t".r.k
   126  let K = {
   127  	l: string
   128  }