Tfenv: MacOS - [์˜ค๋ฅ˜] ์›๊ฒฉ์—์„œ '0.11.2'์™€ ์ผ์น˜ํ•˜๋Š” ๋ฒ„์ „์ด ์—†์Šต๋‹ˆ๋‹ค.

์— ๋งŒ๋“  2018๋…„ 01์›” 16์ผ  ยท  8์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: tfutils/tfenv

์•ˆ๋…•,

MacOS์—์„œ tfenv๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๊ณ  ํ•  ๋•Œ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

์„ค์น˜:

$ 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
$

๋ชฉ๋ก ์›๊ฒฉ:

$ 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

๋ฒ„์ „์„ ์„ค์น˜ํ•ด ๋ณด์‹ญ์‹œ์˜ค.

$ 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 ์„ธ๋ถ€ ์ •๋ณด:

$ 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

์™œ ์ด๋Ÿฐ ์ผ์ด ๋ฐœ์ƒํ•˜๋Š”์ง€ ์•„์‹ญ๋‹ˆ๊นŒ?

moreinfo

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

๋‚˜๋Š” ๊ฐ™์€ ๋ฌธ์ œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค - tfenv 1.0.1:

tfenv list-remote
<empty>

์œ„์— ์ œ๊ณต๋œ ์†”๋ฃจ์…˜์„ ์‚ฌ์šฉํ•ด๋„ ์ž‘๋™ํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.

๋ชจ๋“  8 ๋Œ“๊ธ€

์—…๋ฐ์ดํŠธ: ๊ทผ๋ณธ ์›์ธ์€ ๋‚ด bash ํ”„๋กœํ•„์—์„œ grep ์ƒ‰์ƒ ์˜ต์…˜์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

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

์ด๋Š” grep์ด ํŠน์ˆ˜ ํ•ด์„๋œ ์ƒ‰์ƒ ๋ฌธ์ž๋„ ์ธ์‡„ํ•˜๋„๋ก ์ง€์‹œํ•˜๋ฏ€๋กœ ์Šคํฌ๋ฆฝํŠธ๊ฐ€ ์‹คํŒจํ•ฉ๋‹ˆ๋‹ค.

ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•: bash ์Šคํฌ๋ฆฝํŠธ์—์„œ --color=never๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ grep์— ๋Œ€ํ•œ ์‚ฌ์šฉ์ž์˜ bash ํ™˜๊ฒฝ ๊ตฌ์„ฑ์„ ๋ฎ์–ด์”๋‹ˆ๋‹ค. ํ™๋ณด #84.

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. ์ง€๊ธˆ์€ ์ด๊ฒƒ์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

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

๋˜๋Š” ๋‚ด rc ํŒŒ์ผ์˜ ๋ณ„์นญ

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

84

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

์ด๊ฒƒ์ด ๋” ์ด์ƒ tfscaffold์˜ ๊ด€์‹ฌ์‚ฌ๊ฐ€ ์•„๋‹ˆ๋ผ๊ณ  ์ƒ๊ฐํ•˜๊ธฐ ์‹œ์ž‘ํ–ˆ์Šต๋‹ˆ๋‹ค.

๋‚˜๋Š” ๊ฐ™์€ ๋ฌธ์ œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค - tfenv 1.0.1:

tfenv list-remote
<empty>

์œ„์— ์ œ๊ณต๋œ ์†”๋ฃจ์…˜์„ ์‚ฌ์šฉํ•ด๋„ ์ž‘๋™ํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.

2.0.0-alpha3๊ฐ€ ๋” ์ข‹์Šต๋‹ˆ๊นŒ?

v2.0.0์— ๋ฌธ์ œ๊ฐ€ ๊ณ„์†๋˜๋ฉด ๋‹ค์‹œ ์—ฌ์‹ญ์‹œ์˜ค.

์˜ค๋Š˜ ๋ฒ„์ „ 2.0.0์—์„œ ์ด ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค. ์ฃ„์†กํ•ฉ๋‹ˆ๋‹ค ... :-/ ๋ณ„์นญ์ด ๋‚ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•œ ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค.

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰