open-nomad/vendor/github.com/hashicorp/hcl2/hclwrite
Mahmood Ali c1f6c7b457 Upgrade hcl2 to validate arrays for unknown values
This upgrades hcl2 library dependency to pick up
https://github.com/hashicorp/hcl2/pull/113 .

Prior to this change, parsing and decoding array attributes containing
invalid errors (e.g. references to unknown variables) are silently
dropped, with `cty.Unknown` being assigned to the bad element.  Rather
than showing a type/meaningful error from hcl2, we get a very decrypted
error message from msgpack layer trying to handle `cty.unknown`.

This ensures that we propagate diagnostics correctly and report
meaningful errors to users.

Fixes https://github.com/hashicorp/nomad/issues/5694
Fixes https://github.com/hashicorp/nomad/issues/5680
2019-06-17 12:28:14 -04:00
..
ast.go vendor: Update to latest hcl2 2019-02-14 13:34:46 +01:00
ast_attribute.go vendor: Update to latest hcl2 2019-02-14 13:34:46 +01:00
ast_block.go vendor: Update to latest hcl2 2019-02-14 13:34:46 +01:00
ast_body.go vendor: Update to latest hcl2 2019-02-14 13:34:46 +01:00
ast_expression.go vendor: Update to latest hcl2 2019-02-14 13:34:46 +01:00
doc.go vendor: Update to latest hcl2 2019-02-14 13:34:46 +01:00
format.go Upgrade hcl2 to validate arrays for unknown values 2019-06-17 12:28:14 -04:00
generate.go vendor: Update to latest hcl2 2019-02-14 13:34:46 +01:00
native_node_sorter.go vendor: Update to latest hcl2 2019-02-14 13:34:46 +01:00
node.go vendor: Update to latest hcl2 2019-02-14 13:34:46 +01:00
parser.go vendor: Update to latest hcl2 2019-02-14 13:34:46 +01:00
public.go vendor: Update to latest hcl2 2019-02-14 13:34:46 +01:00
tokens.go vendor: Update to latest hcl2 2019-02-14 13:34:46 +01:00