hashicorp / terraform

Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.
https://www.terraform.io/
Other
41.76k stars 9.42k forks source link

HCL formatter adds additional space between interpolations sequences #19744

Closed apparentlymart closed 5 years ago

apparentlymart commented 5 years ago

In the 0.12.0 prereleases and in current master, given a string like this:

  "${foo}${bar}"

...the terraform fmt command wants to insert a space between the two sequences, changing the meaning:

  "${foo} ${bar}"

This is actually hashicorp/hcl2#65, but we're tracking it over here so we can see it as part of the v0.12.0 milestone.

ghost commented 4 years ago

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.