-
-
Save naftulikay/a69ff2a8fd62b34c0ad945211322b276 to your computer and use it in GitHub Desktop.
Install everything required to recompile 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
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