-
Notifications
You must be signed in to change notification settings - Fork 2
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
Synthesis fails with the error ENAMETOOLONG
#164
Comments
Currently failing with this error:
All are using |
Reproduced with classic CDK. Error messages is basically the same an equally unusable.
I don't think this is producing a symlink, but rather an issue with the recursive implementation of copyDirectory algorithm. The |
Related aws-cdk issue aws/aws-cdk#3899 |
Resolves #164 Note this changes removes running (some) tests in a temporary working dir. Changing the working directory breaks assumptions about the CWD for file paths. There was no apparent reason why this was introduced in the first place in #110. There is an open question about how we want to deal with relative file paths. The two options are: - relative to the CWD - relative to the template There is a comment in [deconstruction.ts](https://github.com/cdklabs/decdk/blob/ee07573d61a470288890d14d739dfb88092b51b8/src/deconstruction.ts#L853-L854) that indicates it should be relative to the template file. However the current implementation in [decdk.ts](https://github.com/cdklabs/decdk/blob/145238a53f1f9f8db5c1808500e6bac4c8a0d4a1/src/decdk.ts#L25) does NOT do that (note the missing `workingDirectory` prop). I've left it at the current implementation (relative to the CWD) for now, which I think is also closer to how imperative CDK behaves. In future the most transparent might be a command line option. Related #200
Describe the bug
For some templates, the synthesis fails with the error
ENAMETOOLONG
.Expected behavior
Synthesize the template successfully.
Current behavior
Running
decdk
on some templates leads to the error:It seems it's producing a symlink that points to the directory that contains it.
Reproduction steps
Run
cdk -a "decdk lambda-topic.json" synth
on theexamples
folder of this repo.The text was updated successfully, but these errors were encountered: