@@ -171,7 +171,8 @@ type dotOutput struct {
171171func (out * dotOutput ) BasicHeader () {
172172 out .g = new (graphviz ).New ()
173173
174- ptree , _ := pkgtree .ListPackages (out .p .ResolvedAbsRoot , string (out .p .ImportRoot ))
174+ ptree , _ := out .p .ParseRootPackageTree ()
175+ // TODO(sdboyer) should be true, true, false, out.p.Manifest.IgnoredPackages()
175176 prm , _ := ptree .ToReachMap (true , false , false , nil )
176177
177178 out .g .createNode (string (out .p .ImportRoot ), "" , prm .FlattenFn (paths .IsStandardImportPath ))
@@ -358,9 +359,9 @@ type MissingStatus struct {
358359func runStatusAll (ctx * dep.Ctx , out outputter , p * dep.Project , sm gps.SourceManager ) (hasMissingPkgs bool , errCount int , err error ) {
359360 // While the network churns on ListVersions() requests, statically analyze
360361 // code from the current project.
361- ptree , err := pkgtree . ListPackages ( p . ResolvedAbsRoot , string ( p . ImportRoot ) )
362+ ptree , err := p . ParseRootPackageTree ( )
362363 if err != nil {
363- return false , 0 , errors . Wrapf ( err , "analysis of local packages failed" )
364+ return false , 0 , err
364365 }
365366
366367 // Set up a solver in order to check the InputHash.
@@ -437,7 +438,7 @@ func runStatusAll(ctx *dep.Ctx, out outputter, p *dep.Project, sm gps.SourceMana
437438 errListPkgCh <- err
438439 }
439440
440- prm , _ := ptr .ToReachMap (true , false , false , nil )
441+ prm , _ := ptr .ToReachMap (true , true , false , p . Manifest . IgnoredPackages () )
441442 bs .Children = prm .FlattenFn (paths .IsStandardImportPath )
442443 }
443444
0 commit comments