-
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 init
does not populate .terraform.lock.hcl
with hashes for all platforms
#29794
Comments
Hi @masonelmore, It appears you are demonstrating the current expected behavior for Since this is documented already in the linked issues, and we have feature requests open in #27264 and #27811, I'm going to close this one to keep the discussion in one place. Thanks! |
Thanks, @jbardin I think I misunderstood the documentation.
Specifically the last sentence which suggests it's up the user to "retrieve and verify the full set of available packages for the given provider version." |
Also, I'll put more effort into searching for relevant issues in the future. :) |
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. |
Terraform Version
Terraform Configuration Files
Debug Output
https://gist.github.com/masonelmore/2f057fbdf0162b9f0bf3ff5fb51de194
Expected Behavior
terraform init
should populate.terraform.lock.hcl
with hashes for all available platforms.Actual Behavior
terraform init
only populates.terraform.lock.hcl
with hashes for the current platform.Steps to Reproduce
terraform init
cp .terraform.lock.hcl .terraform.lock.hcl.bak
terraform providers lock -platform=linux_arm64 -platform=linux_amd64 -platform=darwin_amd64 -platform=windows_amd64
diff .terraform.lock.hcl .terraform.lock.hcl.bak
Here's a script to help reproduce. It uses Docker to ensure the default CLI configuration is used. The
diff
at the end of the script should be empty.References
The text was updated successfully, but these errors were encountered: