Open jpluscplusm opened 1 year ago
Chatting with @mpvl and @mvdan, this actually feels like it could be a bug. Leaving for more investigation in v0.6.x if time allows. @jpluscplusm - please shout if this is actually a more pressing issue than our prioritisation would suggest!
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest stable release?
Yes.
What did you do?
I use the
cue vet
command to test non-CUE files. I use thecue vet --help
output to tell me how to specify the input.The help text only mentions referring to .cue files explicitly, not packages, but because I know that most
cue
subcommands work in both "file" and "package" mode, I give "package mode" a try, and it works:Later, in a different project, I try to replicate this arrangement -- that I know has worked before -- but it fails with a seemingly-unrelated message:
I become discouraged.
Here's a txtar repro with -- to my mind -- 4 equivalent commands. The first 3 succeed; the last 1 fails.
What did you expect to see?
I expected the order of the params given to
cue vet
not to matter.What did you see instead?
The order of the params mattered; and gave me an inscrutable & discouraging error message.