-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Terraform 0.14 dependency lock file unusable because of platform mismatch #27135
Comments
Use the following command on the directory to generate the lockfile for all platforms. See this documented here
|
Thanks @slessardjr , i didn't saw this. |
@slessardjr - thanks for linking to the docs! I'm going to close this as a dupe of #26901 Here's a link to Martin's comment in the above issue with some additional explanation: #26901 (comment) One question I'd have here though is exploring how your OS X workstation created a lock file with only a single hash. Are you using a local filesystem mirror or network mirror by any chance? Those are the cases where we expect to see a lock file automatically populated with only the current-platform's hashes. |
Hi @pkolyvas , i've |
Same as for @Nosmoht , if I've |
@pkolyvas Is setting |
If I understand the comment here:
Maybe the underlying issue is caused by a pre-filled cache when the lock file was created? |
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. |
We develop Terraform code mainly on Mac OSX but execute it on Linux systems, therefore provider hashes written to
.terraform.lock.hcl
do not match. Because of this, every Pipeline fails with error messagedoesn't match any of the checksums previously recorded in the dependency lock file
.Terraform Version
Terraform Configuration Files
Debug Output
Provider hash for
null
provider on Mac OSXProvider hash for
null
provider on amd64 Linux systemCrash Output
Expected Behavior
Pipeline does not fail as
.terraform.lock.hcl
contains hashes of the provider for all supported platforms (?)Actual Behavior
Pipeline fails on any system other than Mac OSX as provider hashes do not match
Steps to Reproduce
terraform init
on OSX.terraform.lock.hcl
terraform plan
Additional Context
References
The text was updated successfully, but these errors were encountered: