-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Bounded recursion example breaks on cue 0.6 #80
Comments
Bounded recursion is not really something you should be using anyway. It's more of a "cool that you can do this" but not good or idiomatic CUE Does it work with Looking at the error, and knowing there have been upstream changes to references, it might be worth asking the CUE team if this should still work as well. Or maybe it's an issue with when defaults get evaluated? My gut says this should still work |
This works a bit more, but not necessarily the out values I expect either. |
The bounded recursion function works for cue 0.5, but breaks on cue 0.6. To reproduce.
To reproduce the issue, take the following cue code (copied from the website, presented here as one block for easy of reproducibility):
and run (with
recur.cue
containing the above):$ cue export --out json recur.cue
with cue 0.5, the result will be:
with cue 0.6 (or 0.7.1), the result errors:
if I remove the
#maxiter
field, I get a result, butout
is now missing:Not sure why any of this happens to be honest, haven't been able to find this issue or a lead anywhere.
The text was updated successfully, but these errors were encountered: