change providers.json to lock.json

It might not just be for providers, and it's in the plugins dir, so
lock.json seems descriptive enough.
This commit is contained in:
James Bardin 2017-06-09 16:28:51 -04:00 committed by Martin Atkins
parent 08592c2602
commit d1c50efb01
3 changed files with 3 additions and 3 deletions

View File

@ -683,7 +683,7 @@ func TestInit_providerLockFile(t *testing.T) {
}
providersLockFile := fmt.Sprintf(
".terraform/plugins/%s_%s/providers.json",
".terraform/plugins/%s_%s/lock.json",
runtime.GOOS, runtime.GOARCH,
)
buf, err := ioutil.ReadFile(providersLockFile)

View File

@ -11,7 +11,7 @@ import (
func (m *Meta) providerPluginsLock() *pluginSHA256LockFile {
return &pluginSHA256LockFile{
Filename: filepath.Join(m.pluginDir(), "providers.json"),
Filename: filepath.Join(m.pluginDir(), "lock.json"),
}
}

View File

@ -125,7 +125,7 @@ func TestPush_goodBackendInit(t *testing.T) {
".terraform/",
".terraform/plugins/",
fmt.Sprintf(".terraform/plugins/%s_%s/", runtime.GOOS, runtime.GOARCH),
fmt.Sprintf(".terraform/plugins/%s_%s/providers.json", runtime.GOOS, runtime.GOARCH),
fmt.Sprintf(".terraform/plugins/%s_%s/lock.json", runtime.GOOS, runtime.GOARCH),
".terraform/terraform.tfstate",
".terraform/terraform.tfstate",
"main.tf",