Open myitcv opened 1 year ago
Minified repro, which I failed to minimize any further:
exec cue cmd print
cmp stdout stdout.golden
-- test_tool.cue --
package workflows
import (
"tool/cli"
"encoding/yaml"
)
command: print: cli.Print & { text: yaml.Marshal(workflow1) }
#Workflow: {
jobs: [string]: #runJob | "never"
#configuration: [...#configuration]
#runJob: {
step: run: string
strategy?: #configuration
}
}
#job: ((#Workflow & _).jobs & {x: _}).x
#step: (#job & {step: _}).step
workflow1: jobs: job1: step: #step & {run: "c"}
-- stdout.golden --
jobs:
job1:
step:
run: c
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
A fairly minimal reproducer:
What did you expect to see?
Passing test.
What did you see instead?
This is a regression compared to v0.5.0, and bisects to https://cuelang.org/cl/556948
cc @mvdan