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
The discovery of root modules may not work reliably for users which use symlinks in the paths leading to root modules as we do not currently resolve symlinks. Discovered paths get compared with paths in module manifest files, which may or may not be resolved symlinks and therefore may or may not match.
Attempted Solutions
Always use resolved paths everywhere, or avoid symlinks.
Current Version
Use-cases
The discovery of root modules may not work reliably for users which use symlinks in the paths leading to root modules as we do not currently resolve symlinks. Discovered paths get compared with paths in module manifest files, which may or may not be resolved symlinks and therefore may or may not match.
Attempted Solutions
Always use resolved paths everywhere, or avoid symlinks.
Proposal
Resolve symlinks where necessary:
terraform-ls/internal/terraform/rootmodule/root_module_manager.go
Lines 84 to 88 in a1ff20f
terraform-ls/internal/terraform/rootmodule/root_module_manager.go
Lines 120 to 124 in 0503882
terraform-ls/internal/terraform/rootmodule/module_manifest.go
Line 73 in 0503882
and add relevant test cases to verify functionality.
The text was updated successfully, but these errors were encountered: