kubecfg icon indicating copy to clipboard operation
kubecfg copied to clipboard

"go get" build doesn't work under new path

Open bjencks opened this issue 3 years ago • 8 comments

With a fresh $HOME/go directory:

$ go get github.com/kubecfg/kubecfg
go get: github.com/kubecfg/[email protected] updating to
	github.com/kubecfg/[email protected]: parsing go.mod:
	module declares its path as: github.com/bitnami/kubecfg
	        but was required as: github.com/kubecfg/kubecfg

bjencks avatar Nov 25 '21 18:11 bjencks

go version ?

mkmik avatar Nov 25 '21 19:11 mkmik

$ go version
go version go1.16.10 linux/amd64

(Fedora 35, in a fresh toolbox with just golang installed)

bjencks avatar Nov 25 '21 19:11 bjencks

In which directory are you running the go get command?

mkmik avatar Nov 25 '21 19:11 mkmik

I tried it in my homedir, in an empty directory, and in a checkout of this repo. All had the same result.

bjencks avatar Nov 25 '21 22:11 bjencks

Does go install github.com/kubecfg/kubecfg@latest work?

mkmik avatar Nov 25 '21 23:11 mkmik

Ah probably we need to cut another release after the rename

mkmik avatar Nov 25 '21 23:11 mkmik

Anyway if all you want is to just build the binary while we fix this you can just do either make or go build (while in the checked out sources; please don't check them out in the GOPATH but somewhere else so it uses go.mod)

mkmik avatar Nov 25 '21 23:11 mkmik

If you want to install the latest release with go get, then please use the old name (go get github.com/bitnami/kubecfg).

Sorry for the mess

mkmik avatar Nov 25 '21 23:11 mkmik