From 4e71ab5cfc9868f637185a56a3e4978e0cc112df Mon Sep 17 00:00:00 2001 From: Owen Mansel-Chan Date: Fri, 8 Apr 2022 15:53:57 +0100 Subject: [PATCH] Update comment above first extraction of packages --- extractor/extractor.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extractor/extractor.go b/extractor/extractor.go index f57bd2ebb6c..aafea417185 100644 --- a/extractor/extractor.go +++ b/extractor/extractor.go @@ -109,9 +109,7 @@ func ExtractWithFlags(buildFlags []string, patterns []string) error { // root directories of packages that we want to extract wantedRoots := make(map[string]bool) - // recursively visit all packages in depth-first order; - // on the way down, associate each package scope with its corresponding package, - // and on the way up extract the package's scope + // Do a post-order traversal and extract the package scope of each package packages.Visit(pkgs, func(pkg *packages.Package) bool { return true }, func(pkg *packages.Package) {