lockfile upgrade command has formatting issues
dovidgef opened this issue · comments
When running m1-terraform-provider-helper lockfile upgrade
it successfully adds the hash of the locally compiled Provider.
However the formatting of the .terraform.lock.hcl
file gets changed from the default formatting set by terraform init
Expected Behavior
It should keep the same formatting as set by standard terraform cli commands
Actual Behavior
It removes the newlines and other whitespace from the hashes
array
Steps to Reproduce (including precondition)
m1-terraform-provider-helper install <provider name>
m1-terraform-provider-helper lockfile upgrade
Your Environment
- OS: Mac OS
- m1-terraform-provider-helper version: 0.7.5
Thanks for the report! I am aware of this and also have filed an issue directly at hashicorp hashicorp/hcl#542
I did not have time, yet, to change the implementation to also include whitespace and newlines.
A fix will be released with
v0.7.7
in a few minutes @dovidgef
Great, thanks for the quick fix.