Skip to content
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

pkg/list: UniqueItems fails when it should not #3547

Open
rogpeppe opened this issue Nov 2, 2024 · 0 comments
Open

pkg/list: UniqueItems fails when it should not #3547

rogpeppe opened this issue Nov 2, 2024 · 0 comments
Labels

Comments

@rogpeppe
Copy link
Member

rogpeppe commented Nov 2, 2024

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

73d4e255

Does this issue reproduce with the latest stable release?

Yes (v0.10.0)

What did you do?

exec cue-v0.10.0 vet x.cue

-- x.cue --
import "list"

#x: list.UniqueItems() & [_, _]

What did you expect to see?

Passing test. Although list.UniqueItems() is being unified with a noncrete value, it can later become concrete and correct.

What did you see instead?

> exec cue vet x.cue
[stderr]
#x: invalid value [_,_] (does not satisfy list.UniqueItems):
    ./x.cue:3:5
[exit status 1]
FAIL: /tmp/y.txtar:1: unexpected command failure

It seems like list.UniqueItems is giving a permanent error when it should be giving an incomplete error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant