Skip to content

Commit 35a0acc

Browse files
authored
fix: Disable Terraform plugin cache on Darwin (#927)
It was occasionally failing without any clear indication of what to fix on our side. The plugins weren't being found by Terraform. We already disable this on Windows, so figured it's fine on Darwin too considering most production deployments will be Linux.
1 parent 53db178 commit 35a0acc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

provisioner/terraform/provision.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ func (t *terraform) Provision(stream proto.DRPCProvisioner_ProvisionStream) erro
8888
})
8989
}
9090
}()
91-
// Windows doesn't work with a plugin cache directory.
92-
// The cause is unknown, but it should work.
93-
if t.cachePath != "" && runtime.GOOS != "windows" {
91+
// Only Linux reliably works with the Terraform plugin
92+
// cache directory. It's unknown why this is.
93+
if t.cachePath != "" && runtime.GOOS == "linux" {
9494
err = terraform.SetEnv(map[string]string{
9595
"TF_PLUGIN_CACHE_DIR": t.cachePath,
9696
})

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy