-
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
states/statefile: decode backend hash as uint64 #21484
Conversation
Fixes hashicorp#21478 In hashicorp#19688, `terraform.BackendState.Hash` was fixed. We also need to fix `states/statefile.backendStateV2.Hash`
"lineage": "0f5b2ff9-6ff5-8e9e-1f81-aa3ce9a483eb", | ||
"backend": { | ||
"hash": 10669755453527594976 | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file was copied from v3-grabbag.in.tfstate and the following lines are added.
[terraform@fix-statev2-hash-decode|✔]$ diff -u states/statefile/testdata/roundtrip/{v3-grabbag.in.tfstate,v3-bigint.in.tfstate}
--- states/statefile/testdata/roundtrip/v3-grabbag.in.tfstate 2018-12-13 11:18:13.000000000 +0900
+++ states/statefile/testdata/roundtrip/v3-bigint.in.tfstate 2019-05-28 23:56:58.000000000 +0900
@@ -3,6 +3,9 @@
"terraform_version": "0.11.1",
"serial": 8,
"lineage": "0f5b2ff9-6ff5-8e9e-1f81-aa3ce9a483eb",
+ "backend": {
+ "hash": 10669755453527594976
+ },
"modules": [
{
"path": [
@@ -0,0 +1,97 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file was only copied from v3-grabbag.out.tfstate
* [DEVOPS-1997] -- update covalence build to 0.8.3 * [DEVOPS-2353] -- upgrade terraform to 0.12.2 to have this fix: hashicorp/terraform#21484
…ci build config.yml (#41) * [DEVOPS-1997] -- update covalence build to 0.8.3 * [DEVOPS-2353] -- upgrade terraform to 0.12.2 to have this fix: hashicorp/terraform#21484 * [DEVOPS-2353] -- forgot to update the terraform version in the circle ci build config.yml
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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Fixes #21478
In #19688,
terraform.BackendState.Hash
was fixed.We also need to fix
states/statefile.backendStateV2.Hash
before
after