-
Notifications
You must be signed in to change notification settings - Fork 294
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
cue get k8s.io/api/core/v1 creates an empty directory #95
Comments
Original reply by @gregwebs in cuelang/cue#95 (comment) I copy and pasted the get command from here: https://cuelang.org/docs/integrations/go/#download-cue-definitions-from-go |
Original reply by @mpvl in cuelang/cue#95 (comment) I believe the issue is that these respective packages need to be already locally available. So you will have to run This is not intended behavior and it should be fixed. As far as I can tell, though, the code I would need is currently internal. I'll see with the Go team if there are any solutions. I prefer not to rely on a go binary being installed. |
Original reply by @gregwebs in cuelang/cue#95 (comment) Yes, if I |
Original reply by @mpvl in cuelang/cue#95 (comment) Yes, should be documented. Note that there is a distinction between the language and the tooling. Often when a language is ported, it is only the language, and not the tooling itself. The go get functionality is part of the tooling, so I'm less worried relying on it being in Go. But good point. |
Original reply by @mpvl in cuelang/cue#95 (comment) Asked the resident expert in th Go team and there is currently no good way to do this. So we should detect the error and better document it. |
Original reply by @wtgtybhertgeghgtwtg in cuelang/cue#95 (comment) I'm seeing it working alright if sudo rm -rf ~/go/pkg/mod/istio.io
rm -rf cue.mod/gen
GO111MODULE=on cue get go istio.io/istio/operator/pkg/apis/istio/v1alpha1
ls cue.mod/gen # Prints, among its dependencies, istio.io Can't find a way to get it to work with specific versions, though. |
Original reply by @anarcher in cuelang/cue#95 (comment) I did
|
Original reply by @anarcher in cuelang/cue#95 (comment) If |
Original reply by @jbdalido in cuelang/cue#95 (comment)
Confirmed |
Original reply by @myitcv in cuelang/cue#95 (comment) 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 to everyone for reporting the variations that failed/succeeded - that definitely helped in diagnosing the underlying issues. |
Originally opened by @gregwebs in cuelang/cue#95
I see a directory
pkg/k8s.io/api/core/v1/
, but not files in it. I was expecting to see some cue files.The command exited with status 0.
The text was updated successfully, but these errors were encountered: