Skip to content

Instantly share code, notes, and snippets.

@jknsware
Last active January 11, 2019 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jknsware/3b1527a8afad45f1caf4b30b418c88e2 to your computer and use it in GitHub Desktop.
Save jknsware/3b1527a8afad45f1caf4b30b418c88e2 to your computer and use it in GitHub Desktop.
  1. Clone or update Homebrew-core from https://github.com/Homebrew/homebrew-core

  2. Search the git log for the specific commit for the Terraform that needs to be installed.

    $ git log --grep "update 0.10.8 bottle" -- Formula/terraform.rb

  3. Brew install terraform.

    $ brew install terraform

  4. Unlink the installed version.

    $ brew unlink terraform

  5. Brew install the specific version.

    $ brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/e4ca4d2c41d4c1412994f9f1cb14993be5b2c59a/Formula/terraform.rb

    Replace e4ca4d2c41d4c1412994f9f1cb14993be5b2c59a with the commit of the version you're looking for.

  6. Pin that specific version

    $ brew pin terraform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment