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
{{ message }}
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
suzuki-shunsuke
changed the title
panic when an array is passed as Decode's input
panic when Decode's input is array and output is a slice
Dec 23, 2021
I found the problem when I investigated the issue of Terraform AWS Provider.
ref. hashicorp/terraform-provider-aws#22312 (comment)
Panic occurs when an array is passed as Decode's input.
How to reproduce
You can reproduce the problem by passing an array as Decode's input.
https://go.dev/play/p/BMxes5mbumY
And you can fix the problem by changing the input type from array to slice.
https://go.dev/play/p/xrfz5X8RJis
The text was updated successfully, but these errors were encountered: