Open ogarcia opened 1 week ago
Thanks for this feature request! If you are viewing this issue and would like to indicate your interest, please use the 👍 reaction on the issue description to upvote this issue. We also welcome additional use case descriptions. Thanks again!
Terraform Version
Use Cases
Currently terraform downloads the providers and installs them in the
.terraform/providers/
directory, these providers can be downloaded again so it would be interesting to indicate to the system that this directory is really a cache.Attempted Solutions
Doing this is proposed manually, but you do not always remember.
Proposal
Automatically create a
CACHEDIR.TAG
file either globally in.terraform/providers/
or for each downloaded provider. This file must contain the following:In this way the backup systems do not back up this directory when they find this file.
This method is used for example by
cargo
(Rust) in thetarget
directory for what is described in the previous paragraph.References
No response