From e9e47c5bd2083347990c852d245626a35bc59e54 Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Thu, 30 Jan 2025 11:29:27 +0100 Subject: [PATCH] Use terraform.exe on Windows --- acceptance/acceptance_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/acceptance/acceptance_test.go b/acceptance/acceptance_test.go index 4b70a9f9df..59eaf5b995 100644 --- a/acceptance/acceptance_test.go +++ b/acceptance/acceptance_test.go @@ -135,6 +135,9 @@ func testAccept(t *testing.T, InprocessMode bool, singleTest string) int { repls.SetPath(terraformrcPath, "$DATABRICKS_TF_CLI_CONFIG_FILE") terraformExecPath := filepath.Join(buildDir, "terraform") + if runtime.GOOS == "windows" { + terraformExecPath += ".exe" + } t.Setenv("DATABRICKS_TF_EXEC_PATH", terraformExecPath) t.Setenv("TERRAFORM", terraformExecPath) repls.SetPath(terraformExecPath, "$TERRAFORM")