Tfenv: MacOS - [ERROR] No versions matching '0.11.2' found in remote

Created on 16 Jan 2018  ·  8Comments  ·  Source: tfutils/tfenv

Hi,

I get an issue when trying to use tfenv on MacOS:

Installation:

$ brew install tfenv
==> Downloading https://github.com/kamatama41/tfenv/archive/v0.6.0.tar.gz
Already downloaded: /Users/*******/Library/Caches/Homebrew/tfenv-0.6.0.tar.gz
🍺  /usr/local/Cellar/tfenv/0.6.0: 19 files, 23.5KB, built in 1 second
$

List remote:

$ tfenv list-remote
0.11.2
0.11.1
0.11.0
0.11.0-rc1
0.11.0-beta1
...
0.1.1
0.1.0

Try to install a version:

$ tfenv install latest
[INFO] Installing Terraform v0.11.2
[INFO] Downloading release tarball from https://releases.hashicorp.com/terraform/0.11.2/terraform_0.11.2_darwin_amd64.zip
curl: (3) [globbing] bad range in column 44
tfenv: tfenv-install: [ERROR] Tarball download failed

$ tfenv install 0.11.2
tfenv: tfenv-install: [ERROR] No versions matching '0.11.2' found in remote

$ tfenv install 0.11.1
tfenv: tfenv-install: [ERROR] No versions matching '0.11.1' found in remote

tfenv install latest
[INFO] Installing Terraform v0.11.2
[INFO] Downloading release tarball from https://releases.hashicorp.com/terraform/0.11.2/terraform_0.11.2_darwin_amd64.zip
curl: (3) [globbing] bad range in column 44
tfenv: tfenv-install: [ERROR] Tarball download failed

MacOS details:

$ echo $BASH_VERSION
4.4.12(1)-release

$ system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: macOS 10.13.2 (17C205)
      Kernel Version: Darwin 17.3.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: **********
      User Name: **********
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 5 days 3:44

$ curl --version
curl 7.54.0 (x86_64-apple-darwin17.0) libcurl/7.54.0 LibreSSL/2.0.20 zlib/1.2.11 nghttp2/1.24.0
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz HTTP2 UnixSockets HTTPS-proxy

Any idea why this happens ?

moreinfo

Most helpful comment

I have the same issue - tfenv 1.0.1:

tfenv list-remote
<empty>

Using solutions provided above, did not work.

All 8 comments

Update: it looks like the root cause was that in my bash profile I'm using grep color option:

# For grep
export GREP_OPTIONS='--color=always'

which instructs grep to print also special interpreted colour characters and thus script fails.

Workaround: use --color=never in bash scripts so that it overwrites user's bash environment configuration for grep. PR #84.

Thank you. Using this for now.

GREP_OPTIONS="--color=never" tfenv install 0.11.7

or an alias in my rc file

alias tfenv='GREP_OPTIONS="--color=never" tfenv'

84

grep: warning: GREP_OPTIONS is deprecated; please use an alias or script

Beginning to think this is no longer tfscaffold's concern.

I have the same issue - tfenv 1.0.1:

tfenv list-remote
<empty>

Using solutions provided above, did not work.

Any better with 2.0.0-alpha3?

Please re-open if issues remain with v2.0.0

I encountered this problem today on version 2.0.0 sorry ... :-/ The alias how ever fixed my issue.

Was this page helpful?
0 / 5 - 0 ratings