-
Hi all, I'm having trouble getting a field to propagate down through my types. I've stripped down the cue example to:
The full cue config is over here: https://github.com/timberio/vector/tree/master/docs With the above example, {
"installation": {
"operating_systems": {
"ubuntu": {
"interfaces": [
{
"paths": {
"bin": "/usr/bin/vector",
"bin_in_path": true,
"config": "/etc/vector/vector.{config_format}"
},
"role_implementations": {
"agent": {
"commands": {
"configure": "none"
},
"name": "agent",
"tutorials": {
"installation": [
{
"title": "Configure Vector",
"command": "none"
}
]
}
}
},
"name": "apt"
}
],
"name": "ubuntu",
"shell": "bash"
}
}
}
} The issue is that the I'm fairly new new to cue so I'm guessing I'm missing something. Any pointers would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
The issue is that At the same time, the bash shell is passed down from
or using v0.4.0 CUE:
|
Beta Was this translation helpful? Give feedback.
-
BTW, you could also avoid having to "pass down" values too much by using nested definitions. The following will yield the same results:
|
Beta Was this translation helpful? Give feedback.
-
This discussion has been migrated to cue-lang/cue#975. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
Beta Was this translation helpful? Give feedback.
BTW, you could also avoid having to "pass down" values too much by using nested definitions. The following will yield the same results: