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)
| 11 | // platform-specific filesystem operations and Terraform's provider mirror behavior. |
| 12 | // On Windows, tests will download providers normally during terraform init. |
| 13 | func 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 | } |