Last active
July 12, 2022 02:19
-
-
Save mt8/4ce20adc68d5d81e42825b963224fa11 to your computer and use it in GitHub Desktop.
Homebrewでインストールしたterraformを任意のバージョンに戻す🍺
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 <[email protected]> | |
Date: Tue Jun 4 19:00:44 2019 +0000 | |
terraform: update 0.12.1 bottle. | |
commit f2e59c52fa8775e9b66b7583e06523d0a6c2fc59 | |
Author: Diogo Azevedo <[email protected]> | |
Date: Tue Jun 4 14:35:33 2019 -0300 | |
terraform 0.12.1 | |
Closes #40692. | |
Signed-off-by: Chongyu Zhu <[email protected]> | |
commit ebf0344c61cd76f4265da7c720ac15baeb85394b | |
Author: BrewTestBot <[email protected]> | |
Date: Thu May 23 02:00:06 2019 +0000 | |
terraform: update 0.12.0 bottle. | |
commit 7ba998ef16f92665e8eb7cd7bad07612e7ba7431 | |
Author: Andy Shinn <[email protected]> | |
Date: Wed May 22 14:00:43 2019 -0700 | |
terraform 0.12.0 | |
Closes #40194. | |
Signed-off-by: Izaak Beekman <[email protected]> | |
commit 042c118f93b5c4a29db33e56ff2473d07bf17c44 | |
Author: BrewTestBot <[email protected]> | |
Date: Fri May 17 07:29:26 2019 +0000 | |
terraform: update 0.11.14 bottle. | |
commit a46fb31427f9448da519461f763e0554d9549c74 | |
Author: Diogo Azevedo <[email protected]> | |
Date: Thu May 16 20:19:14 2019 -0300 | |
terraform 0.11.14 | |
Closes #39958. | |
Signed-off-by: FX Coudert <[email protected]> | |
commit 9f21ccbdc27cf9568035a76511ff420b851bf692 | |
Author: BrewTestBot <[email protected]> | |
Date: Mon Mar 11 20:32:22 2019 +0000 | |
terraform: update 0.11.13 bottle. | |
commit 01ee8603e1ed8f187174458e9cc91b908d6758ba | |
Author: Diogo Azevedo <[email protected]> | |
Date: Mon Mar 11 16:03:34 2019 -0300 | |
terraform 0.11.13 | |
Closes #37794. | |
Signed-off-by: FX Coudert <[email protected]> | |
#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