From c4f4d75ecce89cf3a82c19d62b5240d308ce7187 Mon Sep 17 00:00:00 2001 From: Francesc Campoy Date: Sun, 23 Apr 2017 09:27:01 -0700 Subject: [PATCH] Use go get so missing dependencies are fetched (#406) If the developer is missing any dependencies, for instance `github.com/spf13/cobra/cobra`, `go install` will fail: ```bash ../../spf13/viper/util.go:29:2: cannot find package "gopkg.in/yaml.v2" in any of: /Users/campoy/src/golang.org/x/go/src/gopkg.in/yaml.v2 (from $GOROOT) /Users/campoy/src/gopkg.in/yaml.v2 (from $GOPATH) ``` While `go get github.com/spf13/cobra/cobra` will build the tool successfully. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ae074d6..048d3d5 100644 --- a/README.md +++ b/README.md @@ -180,7 +180,7 @@ commands you want. It's the easiest way to incorporate Cobra into your applicati In order to use the cobra command, compile it using the following command: - > go install github.com/spf13/cobra/cobra + > go get github.com/spf13/cobra/cobra This will create the cobra executable under your `$GOPATH/bin` directory.