├── a.go └── Gopkg.toml /a.go: -------------------------------------------------------------------------------- 1 | package a 2 | 3 | import _ "github.com/rsc/deptest5-b" 4 | import _ "github.com/rsc/deptest5-c" 5 | 6 | -------------------------------------------------------------------------------- /Gopkg.toml: -------------------------------------------------------------------------------- 1 | # Gopkg.toml example 2 | # 3 | # Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md 4 | # for detailed Gopkg.toml documentation. 5 | # 6 | # required = ["github.com/user/thing/cmd/thing"] 7 | # ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] 8 | # 9 | # [[constraint]] 10 | # name = "github.com/user/project" 11 | # version = "1.0.0" 12 | # 13 | # [[constraint]] 14 | # name = "github.com/user/project2" 15 | # branch = "dev" 16 | # source = "github.com/myfork/project2" 17 | # 18 | # [[override]] 19 | # name = "github.com/x/y" 20 | # version = "2.4.0" 21 | 22 | 23 | [[constraint]] 24 | name = "github.com/rsc/deptest5-b" 25 | version = "1.0.0" 26 | 27 | [[constraint]] 28 | name = "github.com/rsc/deptest5-c" 29 | version = "1.0.0" 30 | --------------------------------------------------------------------------------