Skip to content

Commit 5862725

Browse files
committed
builder: deprecate ExtractYAML, use cue embed instead
Easier to place the data, better supported in the ecosystem.
1 parent 8660826 commit 5862725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/builder/instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var cueMutex sync.Mutex
2828
// directory are loaded non-recursively.
2929
//
3030
// Attribution: https://github.com/cue-lang/cue/issues/3504
31+
// Deprecated: Use cue embed instead.
3132
func ExtractYAML(ctxt *cue.Context, filepaths []string) (cue.Value, error) {
3233
value := ctxt.CompileString("")
3334
files := make([]string, 0, 10*len(filepaths))
@@ -95,7 +96,6 @@ func LoadInstance(path string, filepaths []string, tags []string) (*Instance, er
9596
if err != nil {
9697
return nil, errors.Wrap(err)
9798
}
98-
// TODO: https://cuelang.org/docs/howto/place-data-go-api/
9999
value = value.Unify(values[0])
100100

101101
inst := &Instance{

0 commit comments

Comments
 (0)