Tfenv: MacOS - [ERREUR] Aucune version correspondant à '0.11.2' trouvée dans la télécommande

Créé le 16 janv. 2018  ·  8Commentaires  ·  Source: tfutils/tfenv

Salut,

J'obtiens un problème lorsque j'essaie d'utiliser tfenv sur 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
$

Liste à distance :

$ 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

Essayez d'installer une 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

Détails MacOS :

$ 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

Une idée pourquoi cela se produit?

moreinfo

Commentaire le plus utile

J'ai le même problème - tfenv 1.0.1 :

tfenv list-remote
<empty>

L'utilisation des solutions fournies ci-dessus n'a pas fonctionné.

Tous les 8 commentaires

Mise à jour : il semble que la cause principale soit que dans mon profil bash j'utilise l'option de couleur grep :

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

qui demande à grep d'imprimer également des caractères de couleur interprétés spéciaux et donc le script échoue.

Solution : utilisez --color=never dans les scripts bash afin qu'il écrase la configuration de l'environnement bash de l'utilisateur pour grep. PR #84.

Merci. Utiliser ceci pour l'instant.

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

ou un alias dans mon fichier rc

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

84

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

Je commence à penser que ce n'est plus la préoccupation de tfscaffold.

J'ai le même problème - tfenv 1.0.1 :

tfenv list-remote
<empty>

L'utilisation des solutions fournies ci-dessus n'a pas fonctionné.

C'est mieux avec 2.0.0-alpha3 ?

Veuillez rouvrir si des problèmes persistent avec la v2.0.0

J'ai rencontré ce problème aujourd'hui sur la version 2.0.0 désolé... :-/ L'alias a cependant résolu mon problème.

Cette page vous a été utile?
0 / 5 - 0 notes