-
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
Do not download and index already mirrored providers #28333
Comments
closing as duplicate of #27811 |
Reopening as TRACE logs suggest that this is a bug:
|
Hi @secustor, That's not a bug, just a result of Terraform trying to use a directory with network mirror metadata as if it is a filesystem mirror. Those index files are intended to be used if you publish this directory on an HTTP server, but the local mirrors mechanism just scans the local filesystem directory directly and therefore doesn't have any need for the separate indices. If your goal is only to create a filesystem mirror then you can just download the necessary packages and extract them into that layout, and skip creating the |
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. |
Current Terraform Version
Use-cases
If
terraform providers mirror terraform providers mirror -platform=linux_amd64 -platform=darwin_amd64 -platform=windows_amd64 /tmp//cache/terraform/providers
is run mutliple times, the mirror command downloads and regenerate hashes every time. This is far from ideal as this leads to a lot of network traffic if regularly the mirrors are updated.Attempted Solutions
I haven't find any option which should help here.
Proposal
Save the
zh:
hashes in the local index files and compare this hashes against the signature files provided byreleases.hashicorp.com
. If they are the same skip the whole provider, if not continue the current behavior for the provider.References
The text was updated successfully, but these errors were encountered: