MCPcopy Create free account
hub / github.com/coder/coder / CacheTFProviders

Function CacheTFProviders

testutil/terraform_cache_windows.go:13–17  ·  view source on GitHub ↗

CacheTFProviders is a no-op on Windows. Terraform provider caching is only supported on Linux and macOS due to platform-specific filesystem operations and Terraform's provider mirror behavior. On Windows, tests will download providers normally during terraform init.

(t *testing.T, rootDir string, testName string, templateFiles map[string]string)

Source from the content-addressed store, hash-verified

11// platform-specific filesystem operations and Terraform's provider mirror behavior.
12// On Windows, tests will download providers normally during terraform init.
13func CacheTFProviders(t *testing.T, rootDir string, testName string, templateFiles map[string]string) string {
14 t.Helper()
15 t.Log("Terraform provider caching is not supported on Windows; providers will be downloaded normally")
16 return ""
17}

Callers 2

downloadProvidersFunction · 0.92
TestProvisionFunction · 0.92

Calls 2

LogMethod · 0.80
HelperMethod · 0.65

Tested by 2

downloadProvidersFunction · 0.74
TestProvisionFunction · 0.74