Chapter 6. Installing Red Hat OpenShift 3.11 on IBM PowerVC 109
###### Clone the terraform repository if needed ###### 
rm -rf /root/.go/*
cd ~
git clone https://github.com/hashicorp/terraform.git
Cloning into 'terraform'...
remote: Enumerating objects: 78, done.
remote: Counting objects: 100% (78/78), done.
remote: Compressing objects: 100% (48/48), done.
remote: Total 208686 (delta 42), reused 48 (delta 28), pack-reused 208608
Receiving objects: 100% (208686/208686), 162.04 MiB | 7.23 MiB/s, done.
Resolving deltas: 100% (126413/126413), done.
cd terraform
git checkout v0.12.9
Note: checking out 'v0.12.9'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
  git checkout -b new_branch_name
HEAD is now at abec0ac... v0.12.9
XC_OS=linux XC_ARCH=ppc64le make bin
==> Checking that code complies with gofmt requirements... 
GO111MODULE=off go get -u golang.org/x/tools/cmd/stringer 
GO111MODULE=off go get -u golang.org/x/tools/cmd/cover 
GO111MODULE=off go get -u github.com/golang/mock/mockgen 
GOFLAGS=-mod=vendor go generate ./...
2019/10/24 17:28:18 Generated command/internal_plugin_list.go
go: downloading github.com/golang/mock v1.3.1
go: extracting github.com/golang/mock v1.3.1
# go fmt doesn't support -mod=vendor but it still wants to populate the 
# module cache with everything in go.mod even though formatting requires 
# no dependencies, and so we're disabling modules mode for this right
# now until the "go fmt" behavior is rationalized to either support the 
# -mod= argument or _not_ try to install things.
GO111MODULE=off go fmt command/internal_plugin_list.go > /dev/null
==> Removing old directory...
which: no gox in 
(/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/go/bin:/ro 
ot/.go/bin)
==> Installing gox...
go: finding github.com/mitchellh/gox v1.0.1
...
Output truncated
...
  adding: terraform (deflated 70%)
==> Results:
total 46M
-rwxr-xr-x. 1 root root 46M Oct 24 17:31 terraform
cp /root/.go/bin/terraform /usr/local/bin/
terraform -version
Terraform v0.12.9