-
Notifications
You must be signed in to change notification settings - Fork 169
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
Fix Terraform missing init on subdirectory #548
base: master
Are you sure you want to change the base?
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 🙏 |
No description provided.