Dustin Spicuzza
Dustin Spicuzza
Yes, as the documentation says. Pull requests still welcome. :)
@derfalx isn't the point to take the output of `hcl.load` and be able to dump it to hcl? Those classes are not (and should not) be the output of `hcl.load`....
That looks like HCL2? You want https://pypi.org/project/python-hcl2/
If someone pushes a PR to fix the failing test, I'm happy to merge it. I'll keep the PR open, but I don't personally have bandwidth to address it. Maybe...
When created in 2014, this project was a literal translation of the HCL source code at the time, so it's definitely compatible with the 'original' HCL. It's possible there are...
Oh interesting, did they finally create an official hcl to json converter? Ok, that's fair, we definitely don't do it their way because they had been discussing a json converter...
@plainsane just raised this issue yet again, so it seems like this is a popular problem. I would say that we should ignore their documentation, and focus on the output...
I was curious what the transformed HCL files would look like... they're quite different. I pushed the transformed files to the [hcl2json branch](https://github.com/virtuald/pyhcl/compare/hcl2json).
Does this work for nested structures? Would be good to update the test for that.
Originally the golang hcl parser was inconsistent on how it converted structures like that. Feel free to fix the issue and submit a pull request.