terraform/vendor/github.com/zclconf/go-cty/cty
Martin Atkins 373f94fe89 vendor: go get github.com/zclconf/go-cty/cty@master
This includes a fix to prevent unintentional infinite recursion when
trying to unify multiple object types to a single type for conversion to
list(any).

Sadly I wasn't able to reproduce the problem as reported (in #20728), so
therefore I wasn't able to write a Terraform test for it, but I have
confirmed that the cty behavior here was incorrect anyway (recursively
calling the same function we're already in with the same arguments is
clearly not productive) and so this change will allow whatever situation
that was to terminate with a type conversion error, rather than causing a
stack overflow.

It's likely that there is another bug lurking under this, since the
problematic code here was supposed to be unreachable, but avoiding the
crash is the priority for now. If the problem re-surfaces then it should
at least be an error message with some additional context about what the
goal of the caller was.

This also includes an unrelated fix for the gocty package, which doesn't
affect Terraform because it makes very little use of that package.
2019-03-20 16:34:05 -07:00
..
convert vendor: go get github.com/zclconf/go-cty/cty@master 2019-03-20 16:34:05 -07:00
function vendor: upgrade github.com/zclconf/go-cty 2018-12-18 17:29:09 -08:00
gocty vendor: go get github.com/zclconf/go-cty/cty@master 2019-03-20 16:34:05 -07:00
json vendor: go get github.com/zclconf/go-cty@master 2019-01-24 16:42:21 -08:00
msgpack vendor: go get github.com/zclconf/go-cty@master 2019-01-24 16:42:21 -08:00
set vendor: update hcl2 and cty 2018-03-08 11:10:34 -08:00
capsule.go govendor fetch github.com/zclconf/go-cty/... 2018-10-16 18:53:51 -07:00
collection.go govendor fetch github.com/hashicorp/hcl2/... 2017-10-03 17:47:01 -07:00
doc.go govendor fetch github.com/hashicorp/hcl2/... 2017-10-03 17:47:01 -07:00
element_iterator.go govendor fetch github.com/hashicorp/hcl2/... 2017-10-03 17:47:01 -07:00
error.go govendor fetch github.com/hashicorp/hcl2/... 2017-10-03 17:47:01 -07:00
gob.go govendor fetch github.com/zclconf/go-cty/... 2018-10-16 18:53:51 -07:00
helper.go govendor fetch github.com/hashicorp/hcl2/... 2017-10-03 17:47:01 -07:00
json.go govendor fetch github.com/hashicorp/hcl2/... 2017-10-03 17:47:01 -07:00
list_type.go govendor fetch github.com/zclconf/go-cty/... 2018-10-16 18:53:51 -07:00
map_type.go govendor fetch github.com/zclconf/go-cty/... 2018-10-16 18:53:51 -07:00
null.go govendor fetch github.com/hashicorp/hcl2/... 2017-10-03 17:47:01 -07:00
object_type.go govendor fetch github.com/zclconf/go-cty/... 2018-10-16 18:53:51 -07:00
path.go vendor: Upgrade both HCL2 and cty 2019-01-31 11:58:30 -08:00
path_set.go vendor: update go-cty, and some other dependencies 2018-10-16 19:14:11 -07:00
primitive_type.go govendor fetch github.com/zclconf/go-cty/... 2018-10-16 18:53:51 -07:00
set_helper.go vendor: update hcl2 and cty 2018-03-08 11:10:34 -08:00
set_internals.go govendor fetch github.com/zclconf/go-cty/... 2018-10-16 18:24:10 -07:00
set_type.go govendor fetch github.com/zclconf/go-cty/... 2018-10-16 18:53:51 -07:00
tuple_type.go govendor fetch github.com/zclconf/go-cty/... 2018-10-16 18:53:51 -07:00
type.go govendor fetch github.com/zclconf/go-cty/... 2018-10-16 18:53:51 -07:00
type_conform.go vendor: go get github.com/zclconf/go-cty@master 2019-02-01 15:22:54 -08:00
types_to_register.go govendor fetch github.com/zclconf/go-cty/... 2018-01-10 09:16:45 -08:00
unknown.go govendor fetch github.com/zclconf/go-cty/... 2018-10-16 18:53:51 -07:00
unknown_as_null.go vendor: update cty to v0.0.0-20180831220647-752f6a689f5e 2018-10-16 19:14:11 -07:00
value.go vendor: update hcl2 and cty 2018-03-08 11:10:34 -08:00
value_init.go vendor: go get github.com/zclconf/go-cty@master 2019-01-24 16:42:21 -08:00
value_ops.go udpate go.mod and vendor 2018-11-29 15:23:38 -05:00
walk.go vendor: update hcl2 and cty 2018-03-08 11:10:34 -08:00