Skip to content
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

terragrunt providers lock does not support caching #2851

Closed
davidgwps opened this issue Dec 14, 2023 · 2 comments
Closed

terragrunt providers lock does not support caching #2851

davidgwps opened this issue Dec 14, 2023 · 2 comments
Labels
enhancement New feature or request stale Stale

Comments

@davidgwps
Copy link

In my terragrunt.hcl I have the following defined for caching

terraform {
  extra_arguments "plugin_dir" {
    commands = [
      "init",
      "plan",
      "apply",
      "destroy",
      "output",
      "show"
    ]
    env_vars = {
      TF_PLUGIN_CACHE_DIR = "${find_in_parent_folders(".terraform-cache")}/plugins/gcp"
    }
  }
}

The one place this doesn't seem to work is when I run terragrunt run-all --terragrunt-non-interactive providers lock -platform=windows_amd64 -platform=darwin_amd64 -platform=darwin_arm64 -platform=linux_amd64 to regenerate the lock files.

This is super slow, as every module needs causes the dependencies to be downloaded over and over

I can't find an obvious way to enable this. Am I missing something?

@davidgwps davidgwps added the enhancement New feature or request label Dec 14, 2023
@davidgwps
Copy link
Author

davidgwps commented Dec 14, 2023

we found this on the terraform side hashicorp/terraform#33837

@davidgwps davidgwps changed the title does terragrunt providers lock support caching? terragrunt providers lock does not support caching Dec 14, 2023
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for raising this issue.

@github-actions github-actions bot added the stale Stale label Sep 10, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale Stale
Projects
None yet
Development

No branches or pull requests

1 participant