-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
go list -deps fails when using AWS CDK with Golang due to template file issue #1634
Comments
Have you tried running cdxgen with |
Thanks for having a look and your suggestion! We tried using the As I see in the code for I will provide a small repo to reproduce the issue in the next few days. |
Hey @prabhu How to reproduce the issue locally
Actual behaviorThe cdxgen log will contain the following:
A thought about the
|
When using cdxgen with a codebase that includes AWS CDK and contains Golang code, the following error occurs:
After some local testing, I found that this issue is caused by an error in
go list
when it attempts to parse template files included in the aws-cdk NPM package. This can be reproduced within a CDK project as follows:This issue has also been reported in the AWS CDK repository and is being discussed here: aws/aws-cdk#13971
Unfortunately, it is not possible to exclude certain subdirectories with native go tooling as discussed here: golang/go#42965
Is it an option to handle go before npm or deleting node_modules folder after the npm run in cdxgen or excluding certain directories?
Looking forward to your thoughts on this. Thanks!
The text was updated successfully, but these errors were encountered: