From d1c50efb01f7bca62a67c36dee1c8e14403c25f7 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Fri, 9 Jun 2017 16:28:51 -0400 Subject: [PATCH] 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. --- command/init_test.go | 2 +- command/plugins_lock.go | 2 +- command/push_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/command/init_test.go b/command/init_test.go index ca007e24c..9500a73f4 100644 --- a/command/init_test.go +++ b/command/init_test.go @@ -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) diff --git a/command/plugins_lock.go b/command/plugins_lock.go index ed2062634..a1dadf83d 100644 --- a/command/plugins_lock.go +++ b/command/plugins_lock.go @@ -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"), } } diff --git a/command/push_test.go b/command/push_test.go index ec83abaa3..edf13634c 100644 --- a/command/push_test.go +++ b/command/push_test.go @@ -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",