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: reference incorrectly allowed as value #1010

Closed myitcv closed 3 years ago

myitcv commented 3 years ago

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

$ cue version
cue version +aa61ee7f linux/amd64

Does this issue reproduce with the latest release?

Yes

What did you do?

exec cue export file.cue --inject builtat=x

-- file.cue --
package x

built_at: int @tag(builtat,type=int)

What did you expect to see?

An error regarding x not being parseable as a value of type int.

What did you see instead?

built_at: reference "x" not found:
    builtat:1:1
cueckoo commented 3 years ago

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

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