-
Notifications
You must be signed in to change notification settings - Fork 322
fmt subcommand includes recursive flag even on older versions #90
Comments
I see here that the It seems that Terraform 0.11.x automatically recurses into directories. In Terraform 0.12.x that behavior was placed behind the I'll see what can be done about this. |
Should be fixed in |
Thanks @sudomateo that did fix part of my problem, but I am still getting a bunch of errors. It seems a bunch of arguments are being used as parameters to the fmt command
I also see multiple outputs of the command help listed, the first few show the -check option but then the last time even complains about that argument
I have a 1400 line log file of all the failed fmt commands, a bunch running fmt on stat commands of timestamps and other pieces of the log like Even though it succeeds one time without the -recursive flag, it seems to try the command later on with the flag again
Another issue I'm having is about the actual fmt command that does succeed and shows a diff of a file. I only see this diff (related to whitespace of a comment) when run from github actions, but running terraform fmt on my local machine shows no fixes needed. |
@FacetGraph Issue is due to STDERR redirecting into STDOUT by |
@FacetGraph This should be resolved in |
Thanks this is working for me now in v0.5.2 using terraform 0.11.7 |
I am trying to run fmt with terraform 0.11.7 but keep getting the usage method and the fmt command fails. I added the TF_LOG: 'trace' option to the env vars and found this.
This is my code block
The text was updated successfully, but these errors were encountered: