Skip to content

Commit

Permalink
work around for subpackages not being detected and then being treated…
Browse files Browse the repository at this point in the history
… like repos
  • Loading branch information
Bryan Paluch committed Apr 20, 2016
1 parent 0f53710 commit 7deada1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dependency/resolver.go
Expand Up @@ -279,6 +279,13 @@ func (r *Resolver) ResolveLocal(deep bool) ([]string, error) {
imps = p.Imports
}

// Add subpackages to imports so we can skip their lookup and work around an issue
for _, dep := range r.Config.Imports {
for _, sub := range dep.Subpackages {
alreadySeen[dep.Name+"/"+sub] = true
}
}

// We are only looking for dependencies in vendor. No root, cgo, etc.
for _, imp := range imps {
if alreadySeen[imp] {
Expand Down

0 comments on commit 7deada1

Please sign in to comment.