Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] installation of k0sctl through go get is not working #131

Closed
developer-guy opened this issue Apr 28, 2021 · 3 comments
Closed

[BUG] installation of k0sctl through go get is not working #131

developer-guy opened this issue Apr 28, 2021 · 3 comments

Comments

@developer-guy
Copy link

I'm using go version go1.16.3 darwin/amd64, and I tried to install k0sctl through the following command:

$ GO111MODULE=on go get github.com/k0sproject/k0sctl

but I got the following error:

Screen Shot 2021-04-28 at 12 38 44

@kke
Copy link
Contributor

kke commented May 5, 2021

Maybe fixed by #139

Any change?

@developer-guy
Copy link
Author

developer-guy commented May 5, 2021

Maybe fixed by #139

Any change?

Screen Shot 2021-05-05 at 16 18 04
same @kke 😔

@kke
Copy link
Contributor

kke commented May 6, 2021

Ah yes, go getdoesn't get the HEAD but the latest tagged version. I released v0.8.4 and now it seems to work correctly (I managed to replicate the problem with the Direct in a container).

You may need to add GOPROXY=direct to skip the go cache if it insists on installing v0.8.3:

$ GOPROXY=direct GO111MODULE=on go get github.com/k0sproject/k0sctl
$ k0sctl
NAME:
   k0sctl - k0s cluster management tool

USAGE:
   k0sctl [global options] command [command options] [arguments...]

COMMANDS:
   version     Output k0sctl version
   apply       Apply a k0sctl configuration
   kubeconfig  Output the admin kubeconfig of the cluster
   init        Create a configuration template
   reset       Remove traces of k0s from all of the hosts
   help, h     Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --debug, -d  Enable debug logging (default: false) [$DEBUG]
   --help, -h   show help (default: false)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants