DEV Community

Discussion on: Learning Go by examples: part 6 - Create a gRPC app in Go

Collapse
 
mattcale profile image
Matthew Cale

Command:

go get -u github.com/spf13/cobra/cobra
Enter fullscreen mode Exit fullscreen mode

Fails for me with error:

go get: module github.com/spf13/cobra@upgrade found (v1.4.0), but does not contain package github.com/spf13/cobra/cobra
Enter fullscreen mode Exit fullscreen mode

Instead I used:

go get -u github.com/spf13/cobra@latest
Enter fullscreen mode Exit fullscreen mode
Collapse
 
aurelievache profile image
Aurélie Vache

Thanks Matthew, it seams that the code organisation has changed on cobra side, I'm fixing it in the article :)

Collapse
 
mattcale profile image
Matthew Cale

Yep it is a miss on Cobra’s side. Their GH does refer to the right command (now), but the cobra.dev site still has the wrong command. Thanks for contributing this piece and for introducing me to Taskfile.

Thread Thread
 
aurelievache profile image
Aurélie Vache

Yes, they changed the way to "go get" the dependencies, good to know :)