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

states: Disable Terraform version check #26752

Merged

Conversation

alisdair
Copy link
Contributor

v0.14 backport of #26735


For this version of Terraform and forward, we no longer refuse to read compatible state files written by future versions of Terraform. This is a commitment that any changes to the semantics or format of the state file after this commit will require a new state file version 5.

The result of this is that users of this Terraform version will be able to share remote state with users of future versions, and all users will be able to read and write state. This will be true until the next major state file version is required.

This does not affect users of previous versions of Terraform, which will continue to refuse to read state written by later versions.

For this version of Terraform and forward, we no longer refuse to read
compatible state files written by future versions of Terraform. This is
a commitment that any changes to the semantics or format of the state
file after this commit will require a new state file version 5.

The result of this is that users of this Terraform version will be able
to share remote state with users of future versions, and all users will
be able to read and write state. This will be true until the next major
state file version is required.

This does not affect users of previous versions of Terraform, which will
continue to refuse to read state written by later versions.
@alisdair alisdair requested a review from a team October 29, 2020 19:51
@codecov
Copy link

codecov bot commented Oct 29, 2020

Codecov Report

Merging #26752 into v0.14 will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted Files Coverage Δ
states/statefile/read.go 18.69% <ø> (+1.14%) ⬆️
dag/marshal.go 53.42% <0.00%> (-1.37%) ⬇️
terraform/evaluate.go 52.69% <0.00%> (-0.42%) ⬇️
terraform/node_resource_apply_instance.go 75.79% <0.00%> (+0.79%) ⬆️
terraform/eval_diff.go 68.45% <0.00%> (+0.93%) ⬆️

@alisdair alisdair merged commit 337c2a3 into v0.14 Nov 5, 2020
@alisdair alisdair deleted the alisdair/disable-terraform-state-file-version-check-014 branch November 5, 2020 14:52
@MarkKharitonov
Copy link

Hallelujah

@ghost
Copy link

ghost commented Dec 6, 2020

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.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants