mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-04-30 16:03:37 -04:00
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:
committed by
Martin Atkins
parent
08592c2602
commit
d1c50efb01
@@ -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)
|
||||
|
||||
@@ -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"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user