From bb5a299a8e4cff827b7338e71317adf410e92817 Mon Sep 17 00:00:00 2001 From: axel simon Date: Fri, 10 Dec 2021 13:43:52 +0000 Subject: [PATCH] add version to install command Recent versions of Go require to specify a version when installing. This uses "latest". --- cobra/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cobra/README.md b/cobra/README.md index f1a60565..0c5328dc 100644 --- a/cobra/README.md +++ b/cobra/README.md @@ -3,7 +3,7 @@ Cobra provides its own program that will create your application and add any commands you want. It's the easiest way to incorporate Cobra into your application. -Install the cobra generator with the command `go install github.com/spf13/cobra/cobra`. +Install the cobra generator with the command `go install github.com/spf13/cobra/cobra@latest`. Go will automatically install it in your `$GOPATH/bin` directory which should be in your $PATH. Once installed you should have the `cobra` command available. Confirm by typing `cobra` at a