cuelang / cue

CUE has moved to https://github.com/cue-lang/cue
https://cuelang.org
Apache License 2.0
3.09k stars 171 forks source link

cmd/cue: -e does not know about standard builtins #999

Closed myitcv closed 3 years ago

myitcv commented 3 years ago

What version of CUE are you using (cue version)?

$ cue version
cue version +37bf801b linux/amd64

Does this issue reproduce with the latest release?

Yes

What did you do?

exec cue export --out text -e 'yaml.MarshalStream(X)' x.cue

-- x.cue --
X: [
    {
        a: 1
    },
    {
        b: 2
    },
]

gives:

reference "yaml" not found:
    --expression:1:1

This is a regression from v0.2.2

What did you expect to see?

Per v0.2.2:

a: 1
---
b: 2

What did you see instead?

As above; an error.

cueckoo commented 3 years ago

This issue has been migrated to https://github.com/cue-lang/cue/issues/999.

For more details about CUE's migration to a new home, please see https://github.com/cue-lang/cue/issues/1078.