Fix Terraform missing init on subdirectory#548
Fix Terraform missing init on subdirectory#548shikanime wants to merge 1 commit intocachix:masterfrom
Conversation
d677cbb to
9d8e986
Compare
|
@shikanime, is this necessary for the |
|
Not necessary, if omitted it assumes the current directory is a terraform module. The current configuration will currently break if we try to format a submodule. |
|
If I have a repository that has terraform module in subdirectory and the terraform fmt is runt in the root, it will complain that the current directory is not a terraform module such as: |
|
What if we use the |
Thanks for the repro. I'll look into this. |
I can't seem to replicate this. Both terraform and opentofu are happy to format the passed in files from any directory. |
|
On second thought, I just checked my repositories, my mistake, it was only the validate command that complained about the missing init, sorry 🙏 |
|
Implemented in #653. |
No description provided.