You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prior to lineage flattening, this did not impact the underlying CUE value of a lineage. However, now if we impose a joinSchema at the kindsys level (for example, _crdSchema in custom kinds, the lineage.Underlying() CUE value is not the same as the CUE value of myKind.lineage which gets passed to the binding. When printing using cue.Value.Format(), _crdSchema is not expanded, and is left as an internal ref field which has no definition.
In this case, the resulting underlying value seems totally different, as not only is _crdSchema expanded in the joinSchema, but the lineage internals are not part of the printed cue.Value.
This seems like it may be caused by changes in BindLineage to avoid re-unifying the lineage def, though I'm not sure if that also explains why the resulting value differs in terms of lineage internals as well (the double-unified one has them, the single-unified one does not).
The text was updated successfully, but these errors were encountered:
In kindsys, we have the base shared value for kinds which includes:
When a user goes to write a kind, if they use the syntax:
The resulting unified CUE looks like:
Prior to lineage flattening, this did not impact the underlying CUE value of a lineage. However, now if we impose a
joinSchema
at the kindsys level (for example,_crdSchema
in custom kinds, thelineage.Underlying()
CUE value is not the same as the CUE value ofmyKind.lineage
which gets passed to the binding. When printing usingcue.Value.Format()
,_crdSchema
is not expanded, and is left as an internal ref field which has no definition.Example:
Source CUE:
After unifying with
kindsys.Custom
and binding the resultingbar.lineage
value, we get:Since
_crdSchema
is not expanded or defined, this results in invalid CUE.If we remove the excess
thema.#Lineage
frombar
so that it looks like:After unifying and binding, the
lineage.Underlying().Format()
looks like:In this case, the resulting underlying value seems totally different, as not only is
_crdSchema
expanded in thejoinSchema
, but the lineage internals are not part of the printedcue.Value
.This seems like it may be caused by changes in
BindLineage
to avoid re-unifying the lineage def, though I'm not sure if that also explains why the resulting value differs in terms of lineage internals as well (the double-unified one has them, the single-unified one does not).The text was updated successfully, but these errors were encountered: