sl1pm4t / k2tf

Kubernetes YAML to Terraform HCL converter
Mozilla Public License 2.0
1.17k stars 108 forks source link

Replace hcl2 with hcl/v2 #112

Closed myyra closed 2 months ago

myyra commented 1 year ago

The hcl2 repo was only used for the development phase of HCL 2 and is now archived.

This PR replaces the use of github.com/hashicorp/hcl2 with github.com/hashicorp/hcl/v2. The APIs are compatible, and the only change is better output formatting (at least subjectively) when using --tf12format, where it now adds a newline after every opening bracket.

Note: some of the files had unrelated changes when using go fmt, which I chose not to include in this PR. Please let me know if I should add the formatted changes as well.

sl1pm4t commented 1 year ago

Thanks for this. For some reason the drone build system is hanging, so tests and builds are not running. Looks like it's finally time to update this repo to use GH Actions before I'll be able to accept this change.

sl1pm4t commented 2 months ago

Thanks @myyra - I finally merged this after some changes in #119