hashicorp / hcl-lang

Schema and decoder to be used as building blocks for an HCL2-based language server.
https://pkg.go.dev/github.com/hashicorp/hcl-lang
Mozilla Public License 2.0
84 stars 24 forks source link

Introduce `SupportUnknownNestedRefs` for block addresses #423

Closed dbanck closed 3 weeks ago

dbanck commented 3 weeks ago

This will allow references for nested origins that point to a block that doesn't have the referenced attributes and doesn't point to a nested target (like a module).

This is particularly useful for store blocks in the Stack language that can point to a varset defined in HCP Terraform. With the new flag, we can have valid references without knowing the varset entries.