Open robjtede opened 3 years ago
The issue here is that trim picks the default value, even though that option will be deleted during unification.
Dropping the now meaningless v0.4.x milestone. We have relabelled this from trim to roadmap/trim to indicate that a fix for this issue (and indeed all trim issues) requires a more substantial piece of work.
What version of CUE are you using (
cue version
)?What did you do?
I was searching for a way to merge lists that exist on the same key-path and came up with this ineffective attempt (still havent found one). Happened to run a trim on it.
What did you expect to see?
No error.
What did you see instead?
Forcing the trim results in this. Note the missing env var name.
Trim works if one or the other of the marked lines are removed.