-
Notifications
You must be signed in to change notification settings - Fork 545
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
WIP: Add support for fetching the module header from any file #46
Conversation
Hi @mvisonneau. Thank you for your interest in this project. What is the intention behind your contribution? According to your source code, the file which is enumerated last and for which Please note that with the release of v0.4.0, the project has undergone major refactoring to facilitate future community contributions like yours. Likewise, in the absence of tests, maintaining a high-quality codebase was close to impossible. Also, this has now changed. If you're interested in making a contribution, please consider our Contribution Guidelines. |
👋 hey @metmajer, thanks for reviewing my MR. The intent was to be able to set the headers from any files in the project. At the time of my change, only |
Hey @mvisonneau. I've recently gone over the implementation and the change has not yet landed in the codebase. If I understand correctly, then you assume that only 1 I wonder if this assumption is always correct. I am working on a module where each of Thoughts? |
👋 indeed, what do you think of getting a flag to configure which file to use that defaults to |
Hi there, @mvisonneau! This sounds like a good idea. Personally, I think we should take the module comment from a single file only and not try to have it collected from multiple files. What do you think about a flag Let's see if @jmcmaster05 has some thoughts to share? |
I like the idea of a single block as multiple comment blocks could prove to be an interesting mash up.
The more we make use of modules in a given project the more we put everything ( |
@jmcmaster05 thanks for sharing your thoughts! |
Refactored / rebased in order to get it working. Not a 100% pleased with the way I've done it, I'm open for suggestions! Got some additional tests as well 👍 |
Thanks @mvisonneau for your contribution. I will look into this and provide feedback in the next days! |
Hi @mvisonneau! I've noted from your contribution that we need a better means for passing settings from the command line into the application. Adding these settings into the signature of each function is hacky and I'd rather strive for a clean solution. I've already created issue #83 to support this case. This will take a little time though. Additionally, we should revise your current testing strategy to avoid having to touch all existing tests. 👍 |
yep definitely 👍 thanks! |
3762270
to
41b7727
Compare
Hey @mvisonneau! Apologies for having you wait so long for an update. We are already working on integrating support for Terraform 0.12. As it turns out, support for reading out comments is not available in HCL 2.0 (see hashicorp/terraform#1960). I'll defer this PR for now and see what we can do going forward. Thanks! |
@metmajer How is 0.12 support coming along? |
I was thinking about adding that same support until I found this PR. |
I had checked (see hashicorp/terraform#1960) that you referenced earlier in this PR comments but it was about some other issue and had been merged; that's why I asked TBH. |
Sounds like support for comments has been removed as of support for 0.12, so this can probably be closed? |
With the recent changes we've made to this repo, this proposal became valid once again and considering migration to |
Closing this in favor of #217 |
No description provided.