Skip to content
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

Fix bigint bug #132

Merged
merged 2 commits into from
Jan 7, 2021
Merged

Fix bigint bug #132

merged 2 commits into from
Jan 7, 2021

Conversation

kmoe
Copy link
Member

@kmoe kmoe commented Jan 5, 2021

Prior to this change, integers in state that do not fit cleanly in float64s lose their precision, leading to permadiffs when using the random_integer resource. As of SDK v2.4.0, setting UseJSONNumber: true on the resource schema changes number representation to json.Number throughout, preserving precision. Please see hashicorp/terraform-plugin-sdk#655 for more information.

Prior to this change, integers in state that do not fit cleanly in float64s lose their precision, leading to permadiffs. As of SDK v2.4.0, setting UseJSONNumber on the resource schema changes number representation to json.Number throughout, preserving precision. Please see hashicorp/terraform-plugin-sdk#655 for more information.
Copy link
Contributor

@paddycarver paddycarver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do it!

@kmoe kmoe merged commit d133730 into master Jan 7, 2021
@kmoe kmoe deleted the bigint-fix branch January 7, 2021 14:04
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants