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

Incorrect Cobra install command in Cobra documentation #2211

Open
balagrivine opened this issue Dec 30, 2024 · 1 comment
Open

Incorrect Cobra install command in Cobra documentation #2211

balagrivine opened this issue Dec 30, 2024 · 1 comment

Comments

@balagrivine
Copy link

Under the install section in Cobra.dev documentation site, the installation command go get -u github.com/spf13/cobra/cobra provided is incorrect.

The current behavior when you try installing cobra using that command is this output. go: module github.com/spf13/cobra@upgrade found (v1.8.1), but does not contain package github.com/spf13/cobra/cobra

The correct installation command should be go get -u github.com/spf13/cobra which installs cobra v1.8.1 successfully

@balagrivine
Copy link
Author

Skimming through the past issues, I've realized that the README is the one actively up-to-date rather than the documentation website, and the issue is well addressed. The install command provided in the README is go get -u github.com/spf13/cobra@latest which is the correct way to install the latest version (v1.8.1).

I just felt that it's good to address the disparity present in the docs website since it will be the first point of reference for may newcomers :)

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

1 participant