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
And adjust or remove tests that use list arithmetic.
This has a knock-on effect that in cuego, tags which indicate list
length are no longer supported. E.g. `cue:"3*[int|*1]"`. We cannot
automatically fix these use cases, but we also don't expect this change
to cause breakages as list arithmetic has been undocumented for years
and cuego tags tend to be simple expressions.
Some of the fixes to tests expose different bugs/limitations in evalv2,
though work fine with evalv3, so it's possible evalv2 users will
experience more bugs after this change. But these are only in very odd
semi-cyclic scenarios.
Note that this breaking language change is not based on
`language.version` from `cue.mod/module.cue`; the language spec has not
mentioned arithmetic on lists for years, and aligning the evaluator with
the spec has been planned for some time. Moreover, every CUE
configuration should be able to switch to `list.Concat` and
`list.Repeat`, for example via `cue fix`.
Fixes#2237
Signed-off-by: Matthew Sackman <[email protected]>
Change-Id: I39fe190ac2131f60734f91485474e9c94758367f
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1200221
Unity-Result: CUE porcuepine <[email protected]>
Reviewed-by: Daniel Martí <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
0 commit comments