Skip to content

Commit

Permalink
include _test package dependencies (XTestImports)
Browse files Browse the repository at this point in the history
fixes tools#56
  • Loading branch information
Alex Suraci and Ruth Byers authored and kr committed Feb 17, 2014
1 parent 6eb924d commit 0eddae5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dep.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func (g *Godeps) Load(pkgs []*Package) error {
var testImports []string
for _, p := range pkgs {
testImports = append(testImports, p.TestImports...)
testImports = append(testImports, p.XTestImports...)
}
for _, p := range MustLoadPackages(testImports...) {
if p.Standard {
Expand Down
3 changes: 2 additions & 1 deletion pkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ type Package struct {
Deps []string
Standard bool

TestImports []string
TestImports []string
XTestImports []string

Error struct {
Err string
Expand Down

0 comments on commit 0eddae5

Please sign in to comment.