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

fix(cli): fix bug that required cdktf.json in parent directory when running convert #1256

Merged
merged 4 commits into from
Nov 5, 2021

Conversation

ansgarm
Copy link
Member

@ansgarm ansgarm commented Nov 4, 2021

path.resolve(rootPath, ..) will return rootPath if there's no more parent directory.
This caused an infinite loop ending in RangeError: Maximum call stack size exceeded.

Resolves #1247

@ansgarm ansgarm force-pushed the fix-convert-cdktf-json-detection branch from bc8fb93 to a6026e9 Compare November 4, 2021 13:17
…unning convert

`path.resolve(rootPath, ..)` will return rootPath if there's no more parent directory.
This caused an infinite loop ending in `RangeError: Maximum call stack size exceeded`.

Resolves #1247
@ansgarm ansgarm force-pushed the fix-convert-cdktf-json-detection branch 2 times, most recently from 1b31840 to b90d17d Compare November 5, 2021 06:50
@ansgarm ansgarm force-pushed the fix-convert-cdktf-json-detection branch from c5ace43 to 661421b Compare November 5, 2021 07:32
@ansgarm ansgarm enabled auto-merge November 5, 2021 12:17
@ansgarm ansgarm merged commit e2dec75 into main Nov 5, 2021
@ansgarm ansgarm deleted the fix-convert-cdktf-json-detection branch November 5, 2021 12:31
@github-actions
Copy link
Contributor

github-actions bot commented Dec 6, 2022

I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert function cdktf-cli always errors with Maximum call stack size exceeded
3 participants