mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
This new private function takes a configuration tree and a state structure and finds all of the explicit and implied provider dependencies represented, returning them as a moduledeps.Module tree structure. It annotates each dependency with a "reason", which is intended to be useful to a user trying to figure out where a particular dependency is coming from, though we don't yet have any UI to view this. Nothing calls this yet, but a subsequent commit will use the result of this to produce a constraint-conforming map of provider factories during context initialization.
9 lines
90 B
HCL
9 lines
90 B
HCL
|
|
resource "foo_bar" "test1" {
|
|
|
|
}
|
|
|
|
resource "foo_bar" "test2" {
|
|
provider = "foo.baz"
|
|
}
|