-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cuelang.org: cue eval -p documentation is incorrect #1136
Comments
Hmm, this appears to be a bug in the docs. Because, to my knowledge, In the case you link to from the docs, the package selection happens as part of the package pattern specified on the command line:
Gives:
So I will repurpose this issue for fixing up those docs. But I've also raised #1138, because I think the behaviour of imports and |
I ran into this today too. This is very confusing since even the docs got it wrong. |
Was able to figure out how to export a specific package thanks to this issue.
|
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest release?
yes
What did you do?
Given 2 files foo.cue and bar.cue
src/foo.cue
src/bar.cue
What did you expect to see?
I expect the error message to be printed when using
cue eval ./src
and to disappear when adding the-p
option as in the documentation at https://cuelang.org/docs/concepts/packages/#files-belonging-to-a-packageWhat did you see instead?
Same behavior with or without
-p
The text was updated successfully, but these errors were encountered: