Kubebuilder: Documentation for installing kubebuilder might be outdated?

Created on 18 Jan 2019  路  6Comments  路  Source: kubernetes-sigs/kubebuilder

I followed the instructions here:
https://book.kubebuilder.io/getting_started/installation_and_setup.html

but running kubebuilder leads to these errors:

kubebuilder must be run from the project root under $GOPATH/src/<package>. 
Current GOPATH=[my gopath]
Current directory=[my current directory]
prioritawaiting-more-evidence

Most helpful comment

@DirectXMan12 I'm having this same issue when I try to run the download-binaries script from the kubefed repo. See output below.

# versions:
# kubectl: Client Version: v1.13.1
# kubebuilder: 2019/06/28 18:48:57 kubebuilder must be run from the project root under $GOPATH/src/<package>.
Current GOPATH=/root/go.
Current directory=/home/abrennan
Error downloading assets

All 6 comments

@verult can you share the complete output ? Current GOPATH and Current Directory ? because kubebuilder expects to be run in a directory under subtree rooted at GOPATH.

Hello, I just encountered same issue. After following https://book.kubebuilder.io/getting_started/installation_and_setup.html
I can not invoke any kubebuilder sub-command. I can not see setting GOPATH being mentioned in the documentation.

$ kubebuilder version
2019/03/13 16:49:31 kubebuilder must be run from the project root under $GOPATH/src/<package>.
Current GOPATH=/home/weit/go.
Current directory=/home/weit

Should be fixed as of kb v2. let us know if there's still an issue.

@DirectXMan12 I'm having this same issue when I try to run the download-binaries script from the kubefed repo. See output below.

# versions:
# kubectl: Client Version: v1.13.1
# kubebuilder: 2019/06/28 18:48:57 kubebuilder must be run from the project root under $GOPATH/src/<package>.
Current GOPATH=/root/go.
Current directory=/home/abrennan
Error downloading assets

which version of kubebuilder are you using?

Im having the same issue ~My version is 1.0.8 , I also install the Go , Do you have some solutions?

[root@localhost go]# kubebuilder init
2020/06/05 21:23:49 kubebuilder must be run from the project root under $GOPATH/src/.
Current GOPATH=/root/go.
Current directory=/usr/local/go

Was this page helpful?
0 / 5 - 0 ratings

Related issues

camilamacedo86 picture camilamacedo86  路  4Comments

cheyang picture cheyang  路  4Comments

narayanasamyr picture narayanasamyr  路  4Comments

gerred picture gerred  路  4Comments

quanguachong picture quanguachong  路  3Comments