Skip to content

Fix endless recursion when traversing recursive types. #48

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jake-volvo
Copy link

Simply keep a slice of already visited types and exit early.

Fixes #47

Signed-off-by: [email protected]

@jake-volvo jake-volvo force-pushed the fix-traverse-recursion branch from 6958461 to 784703f Compare October 12, 2022 14:35
Simply keep a slice of already visited types and exit early.

Fixes crossplane#47

Signed-off-by: Jakub Ciolek <[email protected]>
@jake-volvo jake-volvo force-pushed the fix-traverse-recursion branch from 784703f to 3997423 Compare October 12, 2022 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Endless recursion when running make generate for recursive types
2 participants