-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
terraform fmt formatting comments block comments using # #11209
Comments
I am seeing the same thing with terraform 0.8.2. Seems to be happen inside variable blocks. Original:
Post-fmt:
|
terraform v0.8.2, Ubuntu 14.04 I'm seeing a variation; it's eating the first comment. Pre-fmt:
Post-fmt:
|
Interesting; it doesn't eat the comment if the first sg-id is on its own line instead of against the opening left bracket. Pre-fmt:
Post-fmt:
|
hashicorp/terraform#11209 See the TF issue above for an example, and test cases for a fix. This didn't affect any other formatting tests.
Fixed! Will be in 0.8.5. @rkulagowski I'm taking a look at that, too. |
Thanks, looking forward to 0.8.5 |
There still appear to be issues with this.
into
and
into
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Using terraform 0.8.4, terraform formats comment block using # signs by placing newlines between every line. IMO, it shoudn't even be adding a newline after a comment starting with a #, let alone a newline between every line.
Original (pre-fmt)
Post-fmt
The format of adding a newline after a comment block seem arbitrary.
The text was updated successfully, but these errors were encountered: