From 6a3838ae0418878b6657a62e74cf8df3e3fabba3 Mon Sep 17 00:00:00 2001 From: Nikita Podshivalov Date: Fri, 28 Oct 2022 09:28:41 +0300 Subject: [PATCH] added display version of terraform when downloaded --- internal/terraform/local.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"