From 619b8e1bfe8534db0017d2f1d5d0d980270105a4 Mon Sep 17 00:00:00 2001 From: Tony Valderrama Date: Sat, 7 Jul 2018 11:50:14 -0700 Subject: [PATCH] Put module cache in home directory on Windows. --- options/options.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/options/options.go b/options/options.go index 8961d2d805..27b8cdf8e5 100644 --- a/options/options.go +++ b/options/options.go @@ -7,7 +7,6 @@ import ( "log" "os" "path/filepath" - "runtime" "github.com/gruntwork-io/terragrunt/errors" "github.com/gruntwork-io/terragrunt/util" @@ -98,13 +97,6 @@ func NewTerragruntOptions(terragruntConfigPath string) (*TerragruntOptions, erro } downloadDir := filepath.Join(homedir, ".terragrunt") - // On some versions of Windows, the default temp dir is a fairly long path (e.g. C:/Users/JONDOE~1/AppData/Local/Temp/2/). - // This is a problem because Windows also limits path lengths to 260 characters, and with nested folders and hashed folder names - // (e.g. from running terraform get), you can hit that limit pretty quickly. Therefore, we try to set the temporary download - // folder to something slightly shorter, but still reasonable. - if runtime.GOOS == "windows" { - downloadDir = `C:\\Windows\\Temp\\terragrunt` - } return &TerragruntOptions{ TerragruntConfigPath: terragruntConfigPath,