hcl icon indicating copy to clipboard operation
hcl copied to clipboard

HCL is the HashiCorp configuration language.

Results 161 hcl issues
Sort by recently updated
recently updated
newest added

hclwrite currently supports `github.com/zclconf/go-cty`. The library looks similar with `github.com/hashicorp/go-cty/cty`. However, their types/values cannot be cast into the other library easily. - Is there a difference between these two library,...

In the context of static analysis, there is a use case where you want to visit all expressions in a JSON body. Imagine getting an expression for a string containing...

### HCL Template ```hcl resource "test" "test-policy" { src_security_zone = src_sz dst_security_zone = dst_sz name = "testpolicy" acl_type = "pba" applied_on = "dst" approval_ticket = "20501" ports = [{ approval_ticket...

I've been experimenting with the `hcl2` code for use with Terragrunt, and so far, things have been going well. The parser is intuitive, the error messages are helpful, and the...

enhancement
v2
gohcl

Currently, the hclwrite generator has a TODO on rendering HEREDOC. This patch will format multi-line string ending in a newline as a HEREDOC instead.

Hi, I noticed that this package implements a Decode function that decodes from `[]byte` I think it would be good if there was a function like in the std `encoding`...

enhancement
v2
syntax/json
syntax/native

Previously we just always evaluated both operands of any binary operator and then executed the operator. For the logical operators that was inconsistent with their treatment in several other languages...

enhancement
syntax/native

I would like to generate the following file. ``` locals { region_vars = read_terragrunt_config(find_in_parent_folders("region.hcl")) region = local.region_vars.locals.region project = "abc-dev" account_number = "443813933915" services = [ "apiserver", ] additional_statements =...

This introduces a new syntax which allows function names to have namespace prefixes, with the different name parts separated by a double-colon `::` as is common in various other C-derived...

enhancement
syntax/native

This PR is currently WIP. I want to get early feedback before continuing. Is this something the HCL maintainers would accept? (I'm also stuck technically on how to implement the...