Error when consuming vendored Go code #402
-
Hi guys, I have tried to do something like
This is the code
Then when I I get errors
After digging into the monitoringv1 code I can see that EmptyDirVolumeSource is not included, any way to hack it together ? 🙂 (edited) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
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:
Here are the references to EmptyDirVolumeSource in my cue.mod directory, does this align with yours?
I've found that with
After I pinned the version of prometheus-operator that resulted in a different generated cue.mod directory:
The definition for EmptyDirVolumeSource has changed here so I suspect the issue you're encountering may be due to usage of the master branch of prometheus-operator via I'm new to cue and haven't written any go in years so the go module system is new to me and I may be leveraging it incorrectly so take this with a grain of salt. |
Beta Was this translation helpful? Give feedback.
-
Actually not I was on master :) |
Beta Was this translation helpful? Give feedback.
-
This discussion has been migrated to cue-lang/cue#402. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
Beta Was this translation helpful? Give feedback.
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:
Here are the refere…