-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Planned value does not match config value for cty.NumberIntVal #34589
Comments
Thanks @bendbennett! This looks like a bug upstream in the cty msgpack encoding. Round-trip from cty->msgpack->cty returns the wrong value, so there is probably a step which is assuming an inadequate precision. The implementations are closely related, it would be good to check if the framework suffers from the same problem on its own. |
This was a great one @bendbennett! Martin summarized the situation really well in my PR here: zclconf/go-cty#176 (comment). A bug in the msgpack library, caused by system dependent behavior (this does still work on We can close this when we update go-cty. |
FWIW (with If I'm misread the urgency on this please let me know, but otherwise I was gonna just sit on it for a while in case other PRs show up that can then all go out together. |
Also FWIW, it looks like It does not enable the setting that caused the problem in |
Thanks for all the feedback, insight and fix on the underlying issue @jbardin and @apparentlymart. I don't think that it's particularly pressing that a new release of |
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 Version
Terraform Configuration Files
Debug Output
https://gist.github.com/bendbennett/56bd4ca26d1026cdc1fcc450b012d573
Expected Behavior
Expected a successful terraform apply.
Actual Behavior
Error relating to invalid plan was generated:
Steps to Reproduce
Additional Context
This appears to be specific to the value of an integer that is supplied to a number attribute (i.e., 9223372036854775808) within a provider.
The structure of the provider is as follows:
Using the following configuration stores the correct value in state, but the CLI output reports an incorrect value:
References
No response
The text was updated successfully, but these errors were encountered: