Closed apparentlymart closed 5 years ago
From just reviewing the code here, it looks like we'd fail to detect a reference to a variable inside a key of an object that is being treated as an expression:
https://github.com/hashicorp/hcl2/blob/6558d83419b8415adbcc4df88fd6c8b56fbbaf5f/hcl/json/structure.go#L527-L531
Not confirmed yet, but we should write a test for this and then fix it if it is indeed broken.
This is fixed (and also now tested) in ebe27107e1e2acf007cf22edb99a9e0e823ee25e.
From just reviewing the code here, it looks like we'd fail to detect a reference to a variable inside a key of an object that is being treated as an expression:
https://github.com/hashicorp/hcl2/blob/6558d83419b8415adbcc4df88fd6c8b56fbbaf5f/hcl/json/structure.go#L527-L531
Not confirmed yet, but we should write a test for this and then fix it if it is indeed broken.