Problem
During execution of `terraform plan` you may encounter this error:
│ Error: Failed to install provider
│
│ Error while installing hashicorp/local v2.2.0: archive has incorrect
│ checksum
│ zh:507776b1e1901fdd6450a88298fc87a27a508e0c01405c7e8e8f2037d5963afe
│ (expected
│ zh:f427480d3ec953434eccf21544b0b2be63595634e4e79a53575ceb892f22230d)
Cause
There were checksum issues with some release assets in the v2.2.0
release of the local
provider that were corrected in v2.2.1
.
Solutions
Please pin the version of the local
provider to at least v2.2.1
within your terraform configuration code, or allow the latest version of the provider to be downloaded to resolve the issue. Below is an example showing the version pinned to v2.2.1
:
terraform {
required_providers {
local = {
source = "hashicorp/local"
version = "2.2.1"
}
}
}