-
Notifications
You must be signed in to change notification settings - Fork 1
Getting Started
Tobias edited this page Mar 19, 2018
·
8 revisions
Fully functional go installation. If in doubt check your installation by running go env
.
Make sure that the variable $GOPATH
is set (e.g. to ~/go
).
- Go to the Releases page
- Download the pre-built binary for your operating system and architecture (macOS = Darwin)
- Unpack (
tar xvzf $file
) and copy/or link it to a path, that is within your$PATH
variable - Make executable (
chmod u+x $file
) and run it
- Get the sources and update all its dependencies (
-u
).
go get -u github.com/thannaske/hcloud-ansible-inv
- Build and install the resulting binary to
$GOPATH/bin/hcloud-ansible-inv
.
go install github.com/thannaske/hcloud-ansible-inv/cmd/hcloud-ansible-inv
If you want to update your installation just follow these two steps again.
Unless you have added $GOPATH/bin
to your $PATH
you need to make the binary globally available in order to use it without typing the whole path to your $GOPATH/bin
folder all the time. To do so you could soft-link the binary to a directory that is within your $PATH
.
ln -s $GOPATH/bin/hcloud-ansible-inv /usr/bin/hcloud-ansible-inv