์๋ ,
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
์ ์ด๋ฐ ์ผ์ด ๋ฐ์ํ๋์ง ์์ญ๋๊น?
์ ๋ฐ์ดํธ: ๊ทผ๋ณธ ์์ธ์ ๋ด 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'
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์์ ์ด ๋ฌธ์ ๊ฐ ๋ฐ์ํ์ต๋๋ค. ์ฃ์กํฉ๋๋ค ... :-/ ๋ณ์นญ์ด ๋ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ๋ฐฉ๋ฒ์ ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๋๋ ๊ฐ์ ๋ฌธ์ ๊ฐ ์์ต๋๋ค - tfenv 1.0.1:
tfenv list-remote
<empty>
์์ ์ ๊ณต๋ ์๋ฃจ์ ์ ์ฌ์ฉํด๋ ์๋ํ์ง ์์์ต๋๋ค.