4 ms·
GitHubs language for the new Actions feature is based on HCL, which is a superset of JSON (adding functionality like comments and other stuff). https://github.
by preya2k 8y ago
GitHubs language for the new Actions feature is based on HCL, which is a superset of JSON (adding functionality like comments and other stuff).
https://github.com/hashicorp/hcl https://github.com/hashicorp/hcl
- scrollaway 8y agoOh god. hcl is one of the worst parts of terraform. I really wonder what other declarative languages were considered for this because it feels like a very weird base to start with :/
- brazzledazzle 8y agoIs it possible some of your perception is shaped by Terraform’s implementation? I’m not a huge fan of json/yaml/etc as a DSL but Terraform makes/made some choices that leave me empty inside. But only after I read the original issue with hundreds of comments that was then migrated by a bot to a new repo issue which is then closed after hundreds more comments because a more recent issue that’s more specific is now around and then that one is closed after dozens of comments because there’s a roll up issue.
- scrollaway 8y agoMaybe. On the other hand a lot of terraform's implementation has been shaped by how they themselves designed hcl, right? Things like multi-nesting function calls inside quotes and what not. All the dollar signs. I can't even tell if that's terraform or HCL, to be honest.
- skybrian 8y agoBased on the README, hcl looks like a small and fairly sane extension to JSON. What do you dislike about it?
- scrollaway 8y agoHere's an example of a nested function call from one of my infrastructure files: public_key = "${file("${path.root}/../ssh/id_rsa.pub")}" Is this terraform's implementation, or hcl's? HCL has to implement that syntax somehow, right?
- skybrian 8y agoIt looks like they have an "interpolation syntax" that works with either JSON or hcl. I guess that's a separate but related mini-language? https://www.terraform.io/docs/configuration/interpolation.html https://www.terraform.io/docs/configuration/interpolation.ht...
- scrollaway 8y agoHmmmm, does that make it pre-processing on hcl? If so I guess that makes a little more sense.
- empath75 8y agoI wouldn’t be surprised if Microsoft ultimately bought hashicorp.