-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tftypes: Disallow msgpack unmarshalling to call NewValue(DynamicPseudoType, nil) #96
Comments
We should, at the very least, be using |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
terraform-plugin-go version
main branch after #94 is reviewed/merged, but should be handled before next release
Relevant Code
terraform-plugin-go/tftypes/value_msgpack.go
Lines 321 to 326 in 7943864
Expected Behavior
Code should return error instead of calling
NewValue()
in manner that will panic.Actual Behavior
If condition is hit after #94 is merged, code will panic.
Steps to Reproduce
Needs unit test added.
References
The text was updated successfully, but these errors were encountered: