-
Notifications
You must be signed in to change notification settings - Fork 171
cue get k8s.io/api/core/v1 creates an empty directory #95
Comments
I copy and pasted the get command from here: https://cuelang.org/docs/integrations/go/#download-cue-definitions-from-go |
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. |
Yes, if I |
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. |
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. |
see #95. Still needs to be done for the docs in cuelang.org website. Closes #180 #180 GitOrigin-RevId: a3cb341 Change-Id: Ib57b868660239807a6944a133e79f2e92eaab53a Reviewed-on: https://cue-review.googlesource.com/c/cue/+/4080 Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
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. |
I did
|
If |
Confirmed |
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. |
This issue has been migrated to cue-lang/cue#95. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
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: