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

evalv3: unexpected structural cycle regression #3571

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

evalv3: unexpected structural cycle regression #3571

rogpeppe opened this issue Nov 12, 2024 · 0 comments

Comments

@rogpeppe
Copy link
Member

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

$ cue version

Does this issue reproduce with the latest stable release?

No (v0.10.0)

What did you do?

exec cue vet x.cue

env CUE_EXPERIMENT=evalv3
exec cue vet x.cue

-- x.cue --
a: #T
a: in: f: true
a: #in: {
	g: #T
	g: #in: f: #T
	g: #in: f: #in: x: true
	f?: _
}

#T: {
	in:  #in
	#in: _
}

What did you expect to see?

Passing test.

What did you see instead?

> exec cue vet x.cue
> env CUE_EXPERIMENT=evalv3
> exec cue vet x.cue
[stderr]
a.in.g.in.f: structural cycle
[exit status 1]
FAIL: /tmp/z.txtar:4: unexpected command failure

This seems like it might well be a bug in evalv3.
As supporting evidence for that, if I duplicate the #T definition and change any one of the references to refer to a difference version, we don't see the structural cycle any more, but that shouldn't make any difference AFAICS.

@rogpeppe rogpeppe changed the title evalv3: evalv3: unexpected structural cycle regression Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant