Skip to content

Commit fb25f73

Browse files
committed
Explicitly export GOPATH and GOBIN before using docker-machine
1 parent ea0b043 commit fb25f73

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ To use the driver, you can download the sources and build it locally:
2020
# Get sources and build the binary at ~/go/bin/docker-machine-driver-hetzner
2121
go get github.com/jonasprogrammer/docker-machine-driver-hetzner
2222

23-
# Make the binary accessible to docker-machine ($GOBIN is typically ~/go/bin)
23+
# Make the binary accessible to docker-machine
24+
export GOPATH=$(go env GOPATH)
25+
export GOBIN=$GOPATH/bin
2426
export PATH="$PATH:$GOBIN"
2527

2628
# Make docker-machine output help including hetzner-specific options
@@ -45,6 +47,8 @@ Fork this repository, yielding `github.com/<yourAccount>/docker-machine-driver-h
4547
# and will hence override each other.
4648

4749
# Make the binary accessible to docker-machine
50+
export GOPATH=$(go env GOPATH)
51+
export GOBIN=$GOPATH/bin
4852
export PATH="$PATH:$GOBIN"
4953

5054
# Make docker-machine output help including hetzner-specific options

0 commit comments

Comments
 (0)