You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have recently introduced a custom command module.calls which currently exclusively uses the data from the .terraform folder. There is currently no other easy way of getting the important metadata, such as (1) module hierarchy, (2) installed location on disk, (3) installed version.
As described in hashicorp/terraform#30005 the existing behaviour of Terraform CLI is that old (removed) modules are kept in the filesystem "cache" and so using it as the only source leads to suboptimal behaviour of showing stale providers which are never removed unless the user explicitly removes them manually.
Use-cases
Provide more accurate representation of "module calls" for a given module URI in module.calls response.
Update module.calls custom command to use this metadata as a primary source and module manifest as secondary (manifest can provide hierarchy which we can't infer from the config)
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.
Depends on #722
Background
We have recently introduced a custom command
module.calls
which currently exclusively uses the data from the.terraform
folder. There is currently no other easy way of getting the important metadata, such as (1) module hierarchy, (2) installed location on disk, (3) installed version.As described in hashicorp/terraform#30005 the existing behaviour of Terraform CLI is that old (removed) modules are kept in the filesystem "cache" and so using it as the only source leads to suboptimal behaviour of showing stale providers which are never removed unless the user explicitly removes them manually.
Use-cases
Provide more accurate representation of "module calls" for a given module URI in
module.calls
response.Attempted Solutions
Stale modules returned from disk cache.
Proposal
module.calls
custom command to use this metadata as a primary source and module manifest as secondary (manifest can provide hierarchy which we can't infer from the config)The text was updated successfully, but these errors were encountered: