cue-lang / cue

The home of the CUE language! Validate and define text-based and dynamic configuration
https://cuelang.org
Apache License 2.0
5.15k stars 296 forks source link

CUE_EXPERIMENT=evalv3 on v0.11.0-alpha.4 breaks previously working cue project #3546

Open cds-amal opened 3 weeks ago

cds-amal commented 3 weeks ago

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

$ cue version
cue version v0.11.0-alpha.4

go version go1.22.4
      -buildmode exe
       -compiler gc
     CGO_ENABLED 1
          GOARCH arm64
            GOOS darwin
cue.lang.version v0.11.0

Does this issue reproduce with the latest stable release?

No

What did you do?

  1. Check out this repo: https://github.com/cds-io/din-cue
  2. run make build for baseline (no error)
  3. run CUE_EXPERIMENT=evalv3 make build for error

What did you expect to see?

I expected yml and sol files to be created.

What did you see instead?

Unify / constraint errors

➜ CUE_EXPERIMENT=evalv3 make build
        ...chains
        ...providers
_loganProvider.services.blast.mainnet.endpoint_details.headers: field not allowed:
    ../config/provider.cue:36:5
_loganProvider.services.blast.mainnet.endpoint_details.priority: field not allowed:
    ../config/provider.cue:35:5
_nodiesProvider.services.blast.mainnet.endpoint_details.priority: field not allowed:
    ../config/provider.cue:52:6
_zheProvider.services.mantle.mainnet.endpoint_details.headers: field not allowed:
    ../config/provider.cue:69:5
providers.Logan.services.blast.mainnet.endpoint_details.headers: field not allowed:
    ../config/provider.cue:36:5
providers.Logan.services.blast.mainnet.endpoint_details.priority: field not allowed:
    ../config/provider.cue:35:5
providers.Nectarine.services.blast.mainnet.endpoint_details.priority: field not allowed:
    ../config/provider.cue:52:6
providers.Zhe.services.mantle.mainnet.endpoint_details.headers: field not allowed:
    ../config/provider.cue:69:5
_berryProvider.services.optimism.mainnet.caps: field not allowed:
    ./utils.cue:47:17
    ./utils.cue:49:7
_berryProvider.services.optimism.mainnet.methods: field not allowed:
    ./utils.cue:47:17
    ./utils.cue:50:7
_berryProvider.services.optimism.mainnet.network_uri: field not allowed:
    ./utils.cue:47:17
    ./utils.cue:48:7

<SNIP> ... the same error is repeated for other files (network_uri, methods, and caps) field not allowd

make[1]: *** [build] Error 1
make: *** [build] Error 2

grue in din-cue on  main [✘!] via .NET took 44s
❯
cds-amal commented 2 weeks ago

Verified this issue still exists in v0.11.0-alpha.5