cue: Use FillPath everywhere since Fill is now deprecated

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-03-31 13:14:36 -07:00
parent ca9b031e9e
commit a8b41c06b7
3 changed files with 10 additions and 34 deletions

View File

@@ -10,6 +10,7 @@ import (
"path/filepath"
"strings"
"cuelang.org/go/cue"
"golang.org/x/sync/errgroup"
"github.com/opentracing/opentracing-go"
@@ -206,7 +207,7 @@ func (c *Client) outputfn(ctx context.Context, r io.Reader) (*compiler.Value, er
if err != nil {
return nil, err
}
if err := out.Fill(v); err != nil {
if err := out.FillPath(cue.MakePath(), v); err != nil {
return nil, fmt.Errorf("%s: %w", h.Name, err)
}
}