Go don't get all the addictions

I am using go 1.5.1 for Windows 8.1 64-bit. I do not have GO15VENDOREXPERIMENTit installed in my environment. I have the latest git and bazaar installed.

I am trying to get a package gomniauth:

go get github.com/stretchr/gomniauth

Despite the fact that the process terminates without any error, many dependencies are not involved.

For example, when compiling my application (which depends on gomniauth), I get the following errors:

..\github.com\stretchr\codecs\xml\simple_xml_codec.go:5:2: cannot find package "github.com/clbanning/x2j" in any of:
    C:\Go\src\github.com\clbanning\x2j (from $GOROOT)
    C:\work\src\github.com\clbanning\x2j (from $GOPATH)
..\github.com\stretchr\codecs\msgpack\msgpack_codec.go:6:2: cannot find package "github.com/ugorji/go/codec" in any of:
    C:\Go\src\github.com\ugorji\go\codec (from $GOROOT)
    C:\work\src\github.com\ugorji\go\codec (from $GOPATH)
..\github.com\stretchr\codecs\bson\bson_codec.go:5:2: cannot find package "labix.org/v2/mgo/bson" in any of:
    C:\Go\src\labix.org\v2\mgo\bson (from $GOROOT)
    C:\work\src\labix.org\v2\mgo\bson (from $GOPATH)

It seems to drag out the direct dependencies for gomniauth, but not pull in the dependency dependencies. I left and deleted the folder stretchrfrom mine GOPATH/srcas well GOPATH/pkg, but after running go getit many times it still does not add any dependencies beyond the second level.

100% , . github, .

+4
2

, go get ./...
:.

cd C:\work\src\github.com\stretchr\gomniauth
go get ./...

go get github.com/stretchr/gomniauth/...

+6

bzr package.

dnf install bzr @RoninDev :

cd $GOPATH/src/github.com/stretchr/gomniauth
go get ./...
0

Source: https://habr.com/ru/post/1617361/


All Articles