mirror of
https://github.com/mikefarah/yq.git
synced 2026-08-24 08:22:13 +08:00
HCL object keys may be non-string literals (e.g. a number like 1). The decoder called cty.Value.AsString on the evaluated key, which panics with 'not a string' for any non-string key type. Mirror OpenTofu/Terragrunt by silently converting non-string keys to their string representation via cty/convert. Add decode scenarios covering numeric and boolean keys.