-
Notifications
You must be signed in to change notification settings - Fork 131
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
Decode declared modules for all kind of installed modules #1760
Conversation
Introduce a new map based on the content of the module manifest. We can use the map to look up local installation paths based on the module source.
We now can look up their installation path based on the normalized module source. We avoid decoding the whole `.terraform` directory by only looking at modules that are used in the configuration.
cafaa8f
to
3bcfe84
Compare
3bcfe84
to
27d6fd1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
This PR adds a missing piece from #1667: decoding declared module calls for locally installed modules (inside the
.terraform/
directory)We do this by normalizing the value of the
source
attribute and matching it against entries in the module manifest. If we find a matching entry, we decode the contents of the folder.This not only re-enables it for registry modules, but also takes the approach a step further, allowing completion for (almost) any locally installed remote module (including submodules!).
UX After