You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to diagnose hashicorp/terraform#24092 and the root of my issue seems to be that go-cty does not allow conversions from cty.Map to cty.Object.
I noticed that the convert docs suggest that map-to-object conversions are an “unsafe” operation, so should work for some subsets, but I could not find an example of this working.
As I mentioned in #41, this should be fixed by #42 and so I'm going to close this out. The fix will be in the next release of cty, so once that is tagged I suppose the next step will be a PR to Terraform to upgrade to the new cty release.
I am trying to diagnose hashicorp/terraform#24092 and the root of my issue seems to be that go-cty does not allow conversions from
cty.Map
tocty.Object
.I noticed that the convert docs suggest that map-to-object conversions are an “unsafe” operation, so should work for some subsets, but I could not find an example of this working.
Is it possible to allow map-to-object conversions like https://play.golang.org/p/mcXBOocphcu (disclaimer: I am not a go programmer)?
The text was updated successfully, but these errors were encountered: