Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Error when consuming vendored Go code #402

Answered by gogommartin
ekarlso asked this question in General
Discussion options

You must be logged in to vote

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.#StorageSpec
}
$ cue vet -c
$ echo $?
0

Here are the refere…

Replies: 3 comments

Comment options

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

You must be logged in to vote
0 replies
Comment options

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
3 participants