Skip to content

evalv3: incomplete value regression involving builtin calls and regular expressions #3679

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

Closed
mvdan opened this issue Jan 15, 2025 · 0 comments
Labels
evaluator evalv3 issues affecting only the evaluator version 3 unity-win bugs found thanks to projects added to Unity

Comments

@mvdan
Copy link
Member

mvdan commented Jan 15, 2025

# With the old evaluator.
env CUE_EXPERIMENT=evalv3=0
exec cue vet -c

# With the new evaluator.
env CUE_EXPERIMENT=evalv3=1
exec cue vet -c

-- input.cue --
package p

import "list"

_environ: FOO: "bar"
env: null | [...=~"="]
env: list.Concat([[for k, v in _environ { "\(k)=\(v)" }]])

As of 9e85cd7:

# With the old evaluator. (0.010s)
> env CUE_EXPERIMENT=evalv3=0
> exec cue vet -c
# With the new evaluator. (0.029s)
> env CUE_EXPERIMENT=evalv3=1
> exec cue vet -c
[stderr]
env.0: incomplete value =~"=":
    ./input.cue:6:17
[exit status 1]
@mvdan mvdan added evaluator evalv3 issues affecting only the evaluator version 3 labels Jan 15, 2025
cueckoo pushed a commit that referenced this issue Jan 16, 2025
Issue #3679

Signed-off-by: Marcel van Lohuizen <[email protected]>
Change-Id: Icd25a06b45c3c7e88fa45f80c2167545d4167006
Reviewed-on: https://gerrithub.io/c/cue-lang/cue/+/1207339
Reviewed-by: Daniel Martí <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
Unity-Result: CUE porcuepine <[email protected]>
@mvdan mvdan added the unity-win bugs found thanks to projects added to Unity label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
evaluator evalv3 issues affecting only the evaluator version 3 unity-win bugs found thanks to projects added to Unity
Projects
None yet
Development

No branches or pull requests

1 participant