https://rancher.com/ logo
Title
b

bulky-potato-48137

07/07/2022, 1:42 PM
Hi all, guess I'm pretty late checking out k3s. It's wonderfully lightweight. I'm trying to
go get <http://github.com/k3s-io/k3s|github.com/k3s-io/k3s>
but getting error
go: downloading <http://github.com/k3s-io/k3s|github.com/k3s-io/k3s> v1.21.9
go get: <http://github.com/k3s-io/k3s@v1.21.9|github.com/k3s-io/k3s@v1.21.9>: parsing go.mod:
	module declares its path as: <http://github.com/rancher/k3s|github.com/rancher/k3s>
	        but was required as: <http://github.com/k3s-io/k3s|github.com/k3s-io/k3s>
I then tried
go get <http://github.com/rancher/k3s|github.com/rancher/k3s>
but again it errors
go: downloading <http://github.com/rancher/k3s|github.com/rancher/k3s> v1.21.9
go get: <http://github.com/rancher/k3s@v1.21.9|github.com/rancher/k3s@v1.21.9> requires
	<http://github.com/kubernetes-sigs/cri-tools@v0.0.0-00010101000000-000000000000|github.com/kubernetes-sigs/cri-tools@v0.0.0-00010101000000-000000000000>: invalid version: unknown revision 000000000000
How can I
go get
like most go modules?
c

creamy-pencil-82913

07/07/2022, 3:38 PM
K3s cannot be installed as a go module. It has a fairly complicated build process due to the large number of upstream components that it packages. Install it using the install script, by manually downloading the binary from the GH release page, or by running the docker image.