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
A little more from debugging, we see this output along these lines when calling fmt.Fprintf("%#v") on the cue.Value returned from cue.Value returned from Instance.Underlying():
It looks like our current tests for translate (both vmux tests and this txtar) didn't catch this because they look only at what happens when the cue.Value here is exported/forced to concreteness, so that it can be encoded as JSON or into a Go struct or whatever. That causes all of these internals to collapse to the expected concrete value, resulting in passing tests.
This is very hard to describe in prose, so here's an example!
https://github.com/mildwonkey/thema-examples/tree/main/translate
Here's the incredibly simplified, pseudocode tl;dr:
The
title
field is unchanged and should be accessible with the sameUnderlying().LookupPath
method.The text was updated successfully, but these errors were encountered: