-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Walk hierarchy to add root modules (#176)
* Walk hierarchy to add root modules Because detection of the relevant root module for a file/dir is a non trivial task, we also introduce candidate finder which can report all potential candidates for root modules in the context of a directory being initialized/opened. * Add testdata * rootmodule: Store data in slice for consistent results This turns lookups from O(1) to O(n), but the n is in most cases so low that it likely doesn't matter anyway. * Shorten warning for multiple candidates * Update internal/terraform/schema/schema_storage.go Co-authored-by: Paul Tyng <ptyng@hashicorp.com> * rootmodule: embed interfaces Co-authored-by: Paul Tyng <ptyng@hashicorp.com>
- Loading branch information
1 parent
d84d99c
commit 186247c
Showing
748 changed files
with
34,431 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.