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]
@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
Most helpful comment
@DirectXMan12 I'm having this same issue when I try to run the
download-binariesscript 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/abrennanError downloading assets