-
Notifications
You must be signed in to change notification settings - Fork 296
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
import failed: no CUE files in k8s.io/api/core/v1 #515
Comments
Original reply by @mpvl in cuelang/cue#515 (comment) CUE files without a package clause need to be listed explicitly on the command line. So if you add a package clause at the top of the file you're good. This should be mentioned in a better error message. |
Original reply by @mpvl in cuelang/cue#515 (comment) also, run |
Original reply by @weberc2-tempus in cuelang/cue#515 (comment)
Ah, thanks very much.
Does this mean "run |
Original reply by @verdverm in cuelang/cue#515 (comment) I think those two commands order does not matter, and that the
this did not actually work, to get the files, I had to additionally run the following
I now have the files there It seems that the initial directory specified may need to have Go files / types that Cue can process? (@mpvl ?) It does look like |
Original reply by @jpugliesi in cuelang/cue#515 (comment) I'm seeing the same issue as described by @weberc2-tempus. Here's my setup: file structure:
cue.mod/module.cue:
Attempting to install the k8s packages
listing files in cue.mod (note there aren't any generated files):
Error:
Cue Version Info
|
Original reply by @myitcv in cuelang/cue#515 (comment) @jpugliesi - from the looks of your repro you are missing a @verdverm - see cuelang/cue#645 for the issue regarding @weberc2-tempus - this issue generally feels like a symptom of the the various issues I summarised in Please feel free to raise any further questions/issues over there, or in a separate issue if you think it a separate issue. Thanks |
Originally opened by @weberc2-tempus in cuelang/cue#515
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
Following the tutorial, I did
What did you expect to see? / What did you see instead?
I seem to be misunderstanding a few things (I'm brand new to cue, so I assume I'm missing something obvious):
cue mod init
per the documentation?cue eval
ignoremain.cue
?The text was updated successfully, but these errors were encountered: