terraform/internal/earlyconfig
Martin Atkins 7caf0b9246 addrs: ImpliedProviderForUnqualifiedType function
This encapsulates the logic for selecting an implied FQN for an
unqualified type name, which could either come from a local name used in
a module without specifying an explicit source for it or from the prefix
of a resource type on a resource that doesn't explicitly set "provider".

This replaces the previous behavior of just directly calling
NewDefaultProvider everywhere so that we can use a different implication
for the local name "terraform", to refer to the built-in terraform
provider rather than the stale one that's on registry.terraform.io for
compatibility with other Terraform versions.
2020-04-06 09:24:23 -07:00
..
testdata/provider-reqs internal/getproviders: A new shared model for provider requirements 2020-03-27 09:01:32 -07:00
config.go addrs: ImpliedProviderForUnqualifiedType function 2020-04-06 09:24:23 -07:00
config_build.go Move module install functionality over to internal/initwd 2019-01-14 11:33:21 -08:00
config_test.go internal/getproviders: A new shared model for provider requirements 2020-03-27 09:01:32 -07:00
diagnostics.go internal/earlyconfig: Liberal config parsing for init 2019-01-14 11:33:21 -08:00
doc.go internal/earlyconfig: Liberal config parsing for init 2019-01-14 11:33:21 -08:00
module.go internal/earlyconfig: Liberal config parsing for init 2019-01-14 11:33:21 -08:00