-
Notifications
You must be signed in to change notification settings - Fork 301
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
cmd/cue: def emits invalid output with multiple list conjuncts #1284
Comments
This is not limited to the playground. I managed a kind of repro with v0.4.0. With the original input, cue def outputs: Here is a txtar/testscript repro with v0.4.0 (@myitcv , did I finally get this right ? ;-)
Gives:
|
🎉 great work! Just to check, do you use This issue really falls in the same bucket as #1340, but will keep separate for now because I'm not totally clear they are one and the same "issue". |
I installed github.com/rogpeppe/go-internal/cmd/testscript, ran it, and fed it the input (txtar). Then I copy pasted the interesting part from the output to the comment/description. |
Fixes bug where a temporary struct was added even if the underlying value itself was not a struct. Fixes #1284 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I29c615c4670594d00725dd54e13ca96b3b33e304 Signed-off-by: Marcel van Lohuizen <[email protected]>
Fixes bug where a temporary struct was added even if the underlying value itself was not a struct. Fixes #1284 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I29c615c4670594d00725dd54e13ca96b3b33e304 Signed-off-by: Marcel van Lohuizen <[email protected]>
Fixes bug where a temporary struct was added even if the underlying value itself was not a struct. Fixes #1284 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I29c615c4670594d00725dd54e13ca96b3b33e304 Signed-off-by: Marcel van Lohuizen <[email protected]>
Fixes bug where a temporary struct was added even if the underlying value itself was not a struct. Fixes cue-lang#1284 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I29c615c4670594d00725dd54e13ca96b3b33e304 Signed-off-by: Marcel van Lohuizen <[email protected]> Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/527841 Unity-Result: CUEcueckoo <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]> Signed-off-by: Joel Longtine <[email protected]>
What version of CUE are you using (
cue version
)?The web based emulator https://cuelang.org/play/#cue@export@yaml
Does this issue reproduce with the latest release?
No, this is a bug reproducible only in the web based emulator.
What did you do?
https://cuelang.org/play/?id=B2-EGA_qicy#cue@export@yaml
What did you expect to see?
What did you see instead?
When output is set to yaml in the cloud emulator, this produces an error:
Weirdly, this actually works if the list is at the top level (not inside
l
):This is a weirdly specific bug. There must be something special about the way the emulator runs. I can't reproduce it locally with any version of cue.
The text was updated successfully, but these errors were encountered: