-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cue/def: running def on the output creates increasingly nested results #2251
Comments
Does this happen with v0.4.3? That's what the section about "latest release" in the bug template is for. |
With v0.4.3
While cleaner, I would still consider this undesirable output |
@verdverm - just to confirm, is the intent behind embedding If so, this gets close to needing what we want in #575 (or similar): a mechanism by which we can enforce that a package value satisfies a given schema. Because the problem with embedding (as in this case) is that closedness is relaxed during the embedding... which is almost certainly not what was intended. The current behaviour of |
Will be fixed in a later CL. Issue #2251 Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com> Change-Id: Icdb00a29e3023b00083de0550da127632a77e7dd Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/556346 Reviewed-by: Roger Peppe <rogpeppe@gmail.com> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> TryBot-Result: CUEcueckoo <cueckoo+gerrithub@cuelang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
What version of CUE are you using (
cue version
)?What did you do?
What did you expect to see?
the final output is the same as the original
What did you see instead?
The text was updated successfully, but these errors were encountered: