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 terraform init: add warning and guidance when lock file is incomplete into v1.2 #31479

Conversation

teamterraform
Copy link
Contributor

Backport

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

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


This PR addresses part of the concerns raised in #29958

It also builds on the change in #31389

terraform init will now print a warning when any provider will only have a single checksum written into the lock file. The warning will include a suggestion that terraform providers lock could fix any potential problems.

My understanding is that this is usually because terraform has only been able to generate a checksum for the current architecture locally, and has otherwise been unable to download the checksums for other architectures. Usually this is a result of initializing through a file system or remote mirror or a local package cache instead of the registry directly.

terraform providers lock will however be able to pull expected checksums for all architectures so terraform lets the user know about the potential fix in case they see this problem later.

@teamterraform teamterraform force-pushed the backport/liamcervante/init-provider-checksums/naturally-kind-magpie branch from 91b6a39 to f17f41d Compare July 20, 2022 12:28
@github-actions
Copy link

Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch.

@liamcervante liamcervante deleted the backport/liamcervante/init-provider-checksums/naturally-kind-magpie branch July 20, 2022 12:50
@github-actions
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 Aug 20, 2022
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.

None yet

2 participants