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

installing cobra #1711

Closed
4cecoder opened this issue May 27, 2022 · 6 comments
Closed

installing cobra #1711

4cecoder opened this issue May 27, 2022 · 6 comments

Comments

@4cecoder
Copy link

4cecoder commented May 27, 2022

#go get -u github.com/spf13/cobra
go: go.mod file not found in current directory or any parent directory.
	'go get' is no longer supported outside a module.
	To build and install a command, use 'go install' with a version,
	like 'go install example.com/cmd@latest'
	For more information, see https://golang.org/doc/go-get-install-deprecation
	or run 'go help get' or 'go help install'.
	#go install github.com/spf13/cobra@latest
package github.com/spf13/cobra is not a main package
@marckhouzam
Copy link
Collaborator

Hi @4cecoder, the cobra binary has moved to https://github.com/spf13/cobra-cli.
To install it: go install github.com/spf13/cobra-cli@latest

@greenseeker
Copy link

@marckhouzam cobra.dev's instructions are wrong then.

@jpmcb
Copy link
Collaborator

jpmcb commented Jun 10, 2022

Right - we're aware that cobra.dev has drifted and it's primarily because we do not have that sites source code under our jurisdiction.

Duplicate of #1674

@cguess
Copy link

cguess commented Jul 24, 2023

Just a heads up this isn't just an issue on cobra.dev, it's also wrong in the Installation portion of the README.

@marckhouzam
Copy link
Collaborator

marckhouzam commented Jul 24, 2023

I believe the installation instructions are correct because in that case we’re go getting the cobra module (not the cobra-cli binary)

@Sweetdevil144
Copy link

I see that the website still hasn't been updated. Okay, so is there any way we can correct this? I mean, we can update the entire wbesite and all occurances.

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

No branches or pull requests

6 participants