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
[FEATURE] preserve comment in the generated code #1213
Comments
Hey there @worawatwi, just wanted to acknowledge that we've seen this. We're looking into it internally and will get back to you. Thank you for bringing this to our attention. |
+1 I wanted to generate some code with |
Thanks for reporting this issue and for upvoting it, too! We're looking into possible ways on how to solve this and will get back with an ETA once we aligned on a solution |
Hi all, Again, thanks for reporting this issue. We are currently looking into solutions. Our challenge is that the HCL parser needs to preserve comments for generated code by default. This issue has been reported and discussed a couple of times, and the community has provided various fixes. However, so far, HashiCorp hasn't addressed any of the open PRs aimed at fixing that. We are still evaluating possible workarounds and will get back to you with an update asap. Thanks for being patient with us! |
as @soerenmartius mentioned, HCL does not support this out of the box and we will need to reimplement a bunch of things to make it work. Instead of just preserving any comments, we plan to support the given use cases via an |
@mariux Just a reminder that |
Is your feature request related to a problem? Please describe.
We added comment to ignore specific tfsec rule but these comments were removed in the generated codes.
Describe the solution you'd like
Provide comment prefix or pattern indicated that the comment should not be removed in the generated code.
Describe alternatives you've considered
N/A.
The text was updated successfully, but these errors were encountered: