-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Description
terraform fails to download the providers exe if the exe local path exceeds the windows default path limits 260.
below two examples that were failing.
D:\Terragrunt\TERRAGRUNT-EXAMPLE\.terragrunt-cache\GnjRrmlHLEossfvW8K1BLYF-j9o\p8RjqOBWuZlKpfg3qiYX6niuHqs\modules\powercard\parent_module_v4\.terraform\providers\registry.terraform.io\hashicorp\kubernetes\2.0.3\windows_amd64\terraform-provider-kubernetes_v2.0.3_x5.exe D:\Terragrunt\TERRAGRUNT-EXAMPLE\.terragrunt-cache\GnjRrmlHLEossfvW8K1BLYF-j9o\p8RjqOBWuZlKpfg3qiYX6niuHqs\modules\powercard\parent_module_v4\.terraform\providers\registry.terraform.io\hashicorp\random\3.1.0\windows_amd64\terraform-provider-random_v3.1.0_x5.exe
Terraform Version
v0.14.7
Crash Output
Error: Failed to install provider
Error while installing hashicorp/kubernetes v2.0.3: open
.terraform\providers\registry.terraform.io\hashicorp\kubernetes\2.0.3\windows_amd64\terraform-provider-kubernetes_v2.0.3_x5.exe:
Le chemin d’accès spécifié est introuvable.
Error: Failed to install provider
Error while installing hashicorp/template v2.2.0: open
.terraform\providers\registry.terraform.io\hashicorp\template\2.2.0\windows_amd64\terraform-provider-template_v2.2.0_x4.exe:
Le chemin d’accès spécifié est introuvable.
Error: Failed to install provider
Error while installing hashicorp/random v3.1.0: open
.terraform\providers\registry.terraform.io\hashicorp\random\3.1.0\windows_amd64\terraform-provider-random_v3.1.0_x5.exe:
Le chemin d’accès spécifié est introuvable.
time=2021-03-28T00:17:32+01:00 level=error msg=Hit multiple errors:
Hit multiple errors:
exit status 1
Expected Behavior
check the local path length and in case of exceeding the length throw a custom error message
Actual Behavior
no error is present at the TRACE log , except the below generic exception at the end
Error: Failed to install provider , the specified path is not found
Steps to Reproduce
terraform init