Skip to content

Error when consuming vendored Go code #402

Answered by cueckoo
cueckoo asked this question in General
Discussion options

You must be logged in to vote

Original reply by @gogommartin in cuelang/cue#402 (comment)

From the syntax in your example I'm pretty sure you're using cue v0.2.0. For reference, I'm using v0.2.0 in this example.

Unfortunately, I wasn't able to replicate the problem you're encountering. Here are the steps that I took:

$ cue version
cue version 0.2.0 darwin/amd64
$ go get github.com/coreos/prometheus-operator/pkg/apis/monitoring/v1/...
$ cue get go github.com/coreos/prometheus-operator/vendor/v1
$ cat example.cue
package example

import (
        monitoringv1 "github.com/coreos/prometheus-operator/pkg/apis/monitoring/v1"
)

#PrometheusSpec: {
        monitoringv1.#PrometheusSpec
        storageSpec: null | monitoringv1.…

Replies: 2 comments

Comment options

cueckoo
Jul 3, 2021
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by cueckoo
Comment options

cueckoo
Jul 3, 2021
Collaborator Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant