Skip to content

Instantly share code, notes, and snippets.

@mt8 mt8/memo.sh
Last active Jun 6, 2019

Embed
What would you like to do?
Homebrewでインストールしたterraformを任意のバージョンに戻す🍺
# terraformのGitコミットログを確認
$ brew log terraform
Warning: homebrew/core is a shallow clone so only partial output will be shown.
To get a full clone run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
commit 74f8f0f9c5cd3703dd36031cfada22e721b244e5
Author: BrewTestBot <homebrew-test-bot@lists.sfconservancy.org>
Date: Tue Jun 4 19:00:44 2019 +0000
terraform: update 0.12.1 bottle.
commit f2e59c52fa8775e9b66b7583e06523d0a6c2fc59
Author: Diogo Azevedo <diogoazevedos@gmail.com>
Date: Tue Jun 4 14:35:33 2019 -0300
terraform 0.12.1
Closes #40692.
Signed-off-by: Chongyu Zhu <i@lembacon.com>
commit ebf0344c61cd76f4265da7c720ac15baeb85394b
Author: BrewTestBot <homebrew-test-bot@lists.sfconservancy.org>
Date: Thu May 23 02:00:06 2019 +0000
terraform: update 0.12.0 bottle.
commit 7ba998ef16f92665e8eb7cd7bad07612e7ba7431
Author: Andy Shinn <315485+andyshinn@users.noreply.github.com>
Date: Wed May 22 14:00:43 2019 -0700
terraform 0.12.0
Closes #40194.
Signed-off-by: Izaak Beekman <zbeekman@gmail.com>
commit 042c118f93b5c4a29db33e56ff2473d07bf17c44
Author: BrewTestBot <homebrew-test-bot@lists.sfconservancy.org>
Date: Fri May 17 07:29:26 2019 +0000
terraform: update 0.11.14 bottle.
commit a46fb31427f9448da519461f763e0554d9549c74
Author: Diogo Azevedo <diogoazevedos@gmail.com>
Date: Thu May 16 20:19:14 2019 -0300
terraform 0.11.14
Closes #39958.
Signed-off-by: FX Coudert <fxcoudert@gmail.com>
commit 9f21ccbdc27cf9568035a76511ff420b851bf692
Author: BrewTestBot <homebrew-test-bot@lists.sfconservancy.org>
Date: Mon Mar 11 20:32:22 2019 +0000
terraform: update 0.11.13 bottle.
commit 01ee8603e1ed8f187174458e9cc91b908d6758ba
Author: Diogo Azevedo <diogoazevedos@gmail.com>
Date: Mon Mar 11 16:03:34 2019 -0300
terraform 0.11.13
Closes #37794.
Signed-off-by: FX Coudert <fxcoudert@gmail.com>
#HomebrewのGitディレクトリに移動
$ cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/
#戻したいバージョンをチェックアウト(この例だと、0.11.13)
$ git checkout 9f21ccbdc27cf9568035a76511ff420b851bf692 terraform.rb
#一旦、terraformをアンインストール
$ brew uninstall terraform
Uninstalling /usr/local/Cellar/terraform/0.12.1... (6 files, 50.2MB)
#インストール
$ brew install terraform
==> Downloading https://homebrew.bintray.com/bottles/terraform-0.11.13.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/a9/a979f1cd1bd2a247c9d446c61a42f0640b49745db074c61f9271b205e9444a29?__gd
######################################################################## 100.0%
==> Pouring terraform-0.11.13.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/terraform/0.11.13: 6 files, 120.6MB
#バージョン確認
$ terraform -v
Terraform v0.11.13
Your version of Terraform is out of date! The latest version
is 0.12.1. You can update by downloading from www.terraform.io/downloads.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.