this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cmd/cue: swap BuildFile for BuildExpr in --path

A further simplification where we don't need to convert
an inline CUE expression into a file to build it.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: If02c40a27e8130605ce3b6e31642d236f46348be
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1233927
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Matthew Sackman <matthew@cue.works>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>

+1 -6
+1 -6
cmd/cue/cmd/orphans.go
··· 214 214 "recordCount", ast.NewLit(token.INT, strconv.Itoa(len(objs))), 215 215 ) 216 216 } 217 - f, err := astutil.ToFile(expr) 218 - if err != nil { 219 - return nil, errors.Wrapf(err, token.NoPos, 220 - "invalid combination of input files") 221 - } 222 217 ctx := b.cmd.ctx 223 - inst := ctx.BuildFile(f) 218 + inst := ctx.BuildExpr(expr) 224 219 if err := inst.Err(); err != nil { 225 220 return nil, err 226 221 }