Closed danielkubat closed 3 years ago
@danielkubat thanks for bubbling this up. We'll get this squared away as soon as we can.
As it currently stands, the fmt
command will only automatically detect var files with the extension *.auto.pkrvars.hcl
, which is an oversight. Thanks again.
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.
Overview of the Issue
It is not possible to format
*.pkrvars.hcl
variable file usingpacker fmt
command. This should be possible usingfmt
command according to help:1
fmt
help documentation should rather include `.pkrvars.hcl, not just
.pkrvars`. 2 formatting of variable files not workingReproduction Steps
Error when formatting
*.pkrvars.hcl
extension:After renaming variable file to
*.pkr.hcl
, formatting works as expected:Packer version
Simplified Packer Buildfile
Operating system and Environment details
macOS Catalina 10.15.7
Log Fragments and crash.log files
N/A