Skip to content

evalv3 "non-concrete value _" regression compared to evalv2 #3875

Closed
@MarcWort

Description

@MarcWort

What version of CUE are you using (cue version)?

with eval3 on current master

~/github/cue/cue-c565c1d3 version                      
cue version v0.13.0-alpha.3

go version go1.24.1
      -buildmode exe
       -compiler gc
  DefaultGODEBUG gotestjsonbuildtext=1,multipathtcp=0,randseednop=0,rsa1024min=0,tlsmlkem=0,x509rsacrt=0,x509usepolicies=0
     CGO_ENABLED 1
          GOARCH amd64
            GOOS linux
         GOAMD64 v1
             vcs git
    vcs.revision c565c1d31f2920ec79219ab04699e68fd32af93b
        vcs.time 2025-03-31T13:58:15Z
    vcs.modified false
cue.lang.version v0.13.0

and with experimental eval3 on current stable release:

➜  ~ cue version                          
cue version v0.12.0

go version go1.23.5
      -buildmode exe
       -compiler gc
       -trimpath true
     CGO_ENABLED 0
          GOARCH amd64
            GOOS linux
         GOAMD64 v1
cue.lang.version v0.12.0

Does this issue reproduce with the latest stable release?

Yes, but only with CUE_EXPERIMENT=evalv3

What did you do?

Minimal reproducer

cd $(mktemp -d)
(
set -e
git clone https://github.com/MarcWort/example-cue.git
cd example-cue
git checkout default-string-empty
cue eval standalone.cue -o json:-
CUE_EXPERIMENT=evalv3 cue eval standalone.cue -o json:-
)

What did you expect to see?

No difference between the old and the new eval v3.

The summary field should not be empty or "non-concrete".

What did you see instead?

groups.one_rulegroup.rules.0.annotations.summary: invalid interpolation: non-concrete value _ (type _):
    ./standalone.cue:24:20

or if defining "" as summary default: (see line https://github.com/MarcWort/example-cue/blob/default-string-empty/standalone.cue#L46)

                    "alert": "Stage",
                    "annotations": {
                        "summary": ""
                    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    evaluatorevalv3issues affecting only the evaluator version 3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions