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

Backport of cli: Only rewrite provider locks file if changed into v0.14 #28235

Conversation

teamterraform
Copy link
Contributor

Backport

This PR is auto-generated from #28230 to be assessed for backporting due to the inclusion of the label 0.14-backport.

The below text is copied from the body of the original PR.


If the provider locks have not changed, there is no need to rewrite the locks file. Preventing this needless rewrite should allow Terraform to operate in a read-only directory, so long as the provider requirements don't change.

Slightly related to #27630, but serving a different use case. The goal here is to make a smaller change which can be back-ported to 0.14, and still allow being able to run Terraform in a read-only directory to allow upgrade from 0.13 to 0.14.

@teamterraform teamterraform requested a review from alisdair March 30, 2021 13:13
@teamterraform teamterraform force-pushed the backport/alisdair/only-rewrite-provider-locks-file-if-changed/blindly-sunny-fowl branch 2 times, most recently from 1c68b7b to b598015 Compare March 30, 2021 13:13
@alisdair alisdair merged commit 94fa3df into v0.14 Mar 30, 2021
@alisdair alisdair deleted the backport/alisdair/only-rewrite-provider-locks-file-if-changed/blindly-sunny-fowl branch March 30, 2021 13:17
@ghost
Copy link

ghost commented Apr 30, 2021

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 Apr 30, 2021
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.

2 participants