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

feat: add env configuration for resolve depth #228

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

Millione
Copy link
Member

Motivation

MAX_RESOLVE_DEPTH is used to prevent stack overflow when evaluting the DefLocation in worksapce mode. Sometimes, the default value will be small for users and cause panic in the process of code generation.

Solution

Open the environment variables MAX_RESOLVE_DEPTH for user configuration.

@Millione Millione requested review from a team as code owners February 22, 2024 13:18
@Millione Millione merged commit 9d2c0a7 into cloudwego:main Feb 23, 2024
9 checks passed
@Millione Millione deleted the fix/depth branch April 10, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants