Skip to content

Instantly share code, notes, and snippets.

@naftulikay
Last active January 5, 2017 03:28
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 naftulikay/a69ff2a8fd62b34c0ad945211322b276 to your computer and use it in GitHub Desktop.
Save naftulikay/a69ff2a8fd62b34c0ad945211322b276 to your computer and use it in GitHub Desktop.
Install everything required to recompile Terraform
cd $HOME
# download and extract
wget https://storage.googleapis.com/golang/go1.7.4.linux-amd64.tar.gz
tar xzf go1.7.4.linux-amd64.tar.gz
# environment variables required by go ffs
export GOROOT=$HOME/go
export GOPATH=$HOME/go/src
export PATH="$PATH:$GOROOT/bin:$GOROOT/src/bin"
# clone terraform
git clone https://github.com/hashicorp/terraform.git $GOPATH/github.com/hashicorp/terraform
# build it
cd $GOPATH/github.com/hashicorp/terraform
make dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment