addrs: Rename DefaultRegistryHost to DefaultProviderRegistryHost

As the comment notes, this hostname is the default for provide source
addresses. We'll shortly be adding some address types to represent module
source addresses too, and so we'll also have DefaultModuleRegistryHost
for that situation.

(They'll actually both contain the the same hostname, but that's a
coincidence rather than a requirement.)
This commit is contained in:
Martin Atkins
2021-05-27 11:09:28 -07:00
parent 0f015a7ff2
commit e5f52e56f8
15 changed files with 89 additions and 89 deletions

View File

@@ -30,7 +30,7 @@ func TestInstallPackage(t *testing.T) {
Arch: "amd64",
}
nullProvider := addrs.NewProvider(
addrs.DefaultRegistryHost, "hashicorp", "null",
addrs.DefaultProviderRegistryHost, "hashicorp", "null",
)
tmpDir := NewDirWithPlatform(tmpDirPath, linuxPlatform)
@@ -89,7 +89,7 @@ func TestLinkFromOtherCache(t *testing.T) {
Arch: "amd64",
}
nullProvider := addrs.NewProvider(
addrs.DefaultRegistryHost, "hashicorp", "null",
addrs.DefaultProviderRegistryHost, "hashicorp", "null",
)
srcDir := NewDirWithPlatform(srcDirPath, windowsPlatform)