Skip to content

Commit

Permalink
Merge pull request #519 from hazelops/IZE-501-show-which-version-of-t…
Browse files Browse the repository at this point in the history
…erraform-we-are-downloading

IZE-501 added display version of terraform when downloaded
  • Loading branch information
psihachina authored Oct 31, 2022
2 parents 546bfad + 6a3838a commit 4aa6319
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/terraform/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package terraform
import (
"bufio"
"fmt"
"github.com/hazelops/ize/internal/config"
"io"
"log"
"os"
Expand All @@ -15,6 +14,9 @@ import (
"strings"
"syscall"

"github.com/hazelops/ize/internal/config"
"github.com/sirupsen/logrus"

"time"

"github.com/hashicorp/go-version"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 4aa6319

Please sign in to comment.