mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-22 11:17:35 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user