diff --git a/internal/terraform/local.go b/internal/terraform/local.go index 95c180ed..e6766a52 100644 --- a/internal/terraform/local.go +++ b/internal/terraform/local.go @@ -3,7 +3,6 @@ package terraform import ( "bufio" "fmt" - "github.com/hazelops/ize/internal/config" "io" "log" "os" @@ -15,6 +14,9 @@ import ( "strings" "syscall" + "github.com/hazelops/ize/internal/config" + "github.com/sirupsen/logrus" + "time" "github.com/hashicorp/go-version" @@ -256,6 +258,8 @@ func Install(tfversion string, mirrorURL string) error { mirrorURL = fmt.Sprintf("%s/", mirrorURL) } + logrus.Debugf("downloading terraform version %s to: %s", tfversion, installLocation) + /* if selected version already exist, */ /* proceed to download it from the hashicorp release page */ url := mirrorURL + tfversion + "/" + versionPrefix + tfversion + "_" + goos + "_" + goarch + ".zip"