Hello Eveeryone, I see three hashes in terraform.lock.hcl file. I know each hash represents OS platform explicitly. How can we determine which OS platforms my current lockfile supports. Thanks.
hashes = [
“h1:2bDndcCvti7hgXw4MkMo37cyAAu1gk+JvsU9/UbRJNQ=”,
“h1:RwoFuX1yGMVaKJaUmXDKklEaQ/yUCEdt5k2kz+/g08c=”,
“h1:bMiTeecRXGBmx/btqJX57X0KuJ3j9BmM/ph3KZ3FGj0=”,
Hi @ramaswamy_27,
Terraform doesn’t record the platform of the provider, it’s only looking to see if the current platform has a valid hash. I think the only way for you to reverse the lookup would be to manually hash the provider directories and compare the results to your lock file. If you wanted to try this, Terraform uses the golang.org/x/mod/sumdb/dirhash package to hash all files contained in the provider distribution.
Hi, A small clarification. The provider directory is till /proj-x/.terraform/providers/registry.terraform.io/hashicorp/aws/6.28.0/