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: bad error message in the case bool value cannot be parsed #1011

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: bool @tag(builtat,type=bool)

What did you expect to see?

An error message about being unable to parse x as a bool value.

What did you see instead?

An unrelated error message about environment variables:

invalid boolean value "x" for environment variable builtat
cueckoo commented 3 years ago

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

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