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

Use configuration as the primary source for module.calls #725

Closed
3 tasks done
radeksimko opened this issue Nov 24, 2021 · 1 comment · Fixed by #987
Closed
3 tasks done

Use configuration as the primary source for module.calls #725

radeksimko opened this issue Nov 24, 2021 · 1 comment · Fixed by #987
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers workspace/executeCommand
Milestone

Comments

@radeksimko
Copy link
Member

radeksimko commented Nov 24, 2021

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

@github-actions
Copy link

github-actions bot commented Aug 8, 2022

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers workspace/executeCommand
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants