From 6d41a5438cbc948d2526f5d7e7549891667116fc Mon Sep 17 00:00:00 2001 From: Katy Moe Date: Mon, 7 Sep 2020 21:51:54 +0100 Subject: [PATCH] supply context to Find --- config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.go b/config.go index 9f72c3e..e9c4d58 100644 --- a/config.go +++ b/config.go @@ -1,6 +1,7 @@ package tftest import ( + "context" "fmt" "io/ioutil" "os" @@ -40,7 +41,7 @@ func DiscoverConfig(sourceDir string) (*Config, error) { default: finders = append(finders, tfinstall.LookPath(), tfinstall.LatestVersion(tfDir, true)) } - tfExec, err := tfinstall.Find(finders...) + tfExec, err := tfinstall.Find(context.Background(), finders...) if err != nil { return nil, err }