Skip to content
Myr

Use go get so missing dependencies are fetched (#406)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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.

authored by Francesc Campoy · committed by Albert Nigmatzianov · parent 681a777 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:README.md+1 added-1 removed
178 unmodified lines
179commands you want. It's the easiest way to incorporate Cobra into your application.180181In order to use the cobra command, compile it using the following command:182183 > go install github.com/spf13/cobra/cobra183 > go get github.com/spf13/cobra/cobra184185This will create the cobra executable under your `$GOPATH/bin` directory.186187### cobra init
723 unmodified lines