Skip to content

Commit

Permalink
add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kvendingoldo committed Jun 12, 2024
1 parent bb529da commit c0d4fd0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions versionmanager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"os"
"path/filepath"
"slices"
"strings"

"github.com/hashicorp/go-hclog"
"github.com/hashicorp/go-version"
Expand Down Expand Up @@ -119,11 +120,12 @@ func (m VersionManager) Evaluate(requestedVersion string, proxyCall bool) (strin

version, err := m.searchInstallRemote(predicateInfo, m.conf.NoInstall, proxyCall)
if err != nil {
//m.conf.Displayer.Display("Found compatible version installed locally : " + version)
return "", errNoCompatibleLocally
}

m.conf.Displayer.Display("Auto-install is disabled. To install " + version + " version you can set environment variable TENV_AUTO_INSTALL=true, or install it via any of the following command: 'tenv tf install', 'tenv tf install " + version + "'")
cmdName := strings.ToLower(m.FolderName)

m.conf.Displayer.Display("Auto-install is disabled. To install " + version + " version you can set environment variable TENV_AUTO_INSTALL=true, or install it via any of the following command: 'tenv " + cmdName + " install', 'tenv " + cmdName + " install " + version + "'")

return "", errNoCompatibleLocally
}
Expand Down

0 comments on commit c0d4fd0

Please sign in to comment.