Add package directory as a wanted root

This commit is contained in:
Sauyon Lee
2020-09-23 04:25:01 -07:00
parent 5bdff0f9d3
commit 16796529fc

View File

@@ -122,6 +122,7 @@ func ExtractWithFlags(buildFlags []string, patterns []string) error {
log.Fatalf("Unable to get a source directory for input package %s.", pkg.PkgPath)
}
wantedRoots[pkgRoots[pkg.PkgPath]] = true
wantedRoots[pkgDirs[pkg.PkgPath]] = true
}
log.Println("Done processing dependencies.")