Kind: Kind not added to PATH for MacOS

Created on 18 Dec 2018  路  4Comments  路  Source: kubernetes-sigs/kind

Hi,

I follow the instructions to install with go get sigs.k8s.io/kind and have -bash: kind: command not found, so have to manually run from source code.

kindocumentation lifecyclactive prioritimportant-soon

Most helpful comment

The binary should be at $(go env GOPATH)/bin/kind
Most go developers have PATH=${PATH}:$(go env GOPATH)/bin or something similar.

I think the upstream go docs used to cover this better, https://golang.org/doc/install#testing just touches on the fact that binaries go in your "workspace" at ./bin, with the default workspace (GOPATH) being $HOME/go unless you've set $GOPATH to something else.

I'm not sure how much of this belongs in our docs, but we probably need to clarify this a bit to make it easier.

/kind documentation
/priority important-soon

All 4 comments

Hi @ivanayov could you provide us with more info?

Could you provide the output of go env and go version along with the specific steps you followed to run kind?

The binary should be at $(go env GOPATH)/bin/kind
Most go developers have PATH=${PATH}:$(go env GOPATH)/bin or something similar.

I think the upstream go docs used to cover this better, https://golang.org/doc/install#testing just touches on the fact that binaries go in your "workspace" at ./bin, with the default workspace (GOPATH) being $HOME/go unless you've set $GOPATH to something else.

I'm not sure how much of this belongs in our docs, but we probably need to clarify this a bit to make it easier.

/kind documentation
/priority important-soon

/lifecycle active

/assign

Was this page helpful?
0 / 5 - 0 ratings

Related issues

philipstaffordwood picture philipstaffordwood  路  4Comments

nielsvbrecht picture nielsvbrecht  路  3Comments

fgimenez picture fgimenez  路  4Comments

amarsgithub picture amarsgithub  路  4Comments

i3oc9i picture i3oc9i  路  3Comments