pkgPath
This commit is contained in:
@@ -443,13 +443,14 @@ func allPkgs(ctx *context, initial []*packages.Package) (all []*aPackage, errs [
|
|||||||
built := ctx.built
|
built := ctx.built
|
||||||
packages.Visit(initial, nil, func(p *packages.Package) {
|
packages.Visit(initial, nil, func(p *packages.Package) {
|
||||||
if p.Types != nil && !p.IllTyped {
|
if p.Types != nil && !p.IllTyped {
|
||||||
if _, ok := built[p.PkgPath]; ok {
|
pkgPath := p.PkgPath
|
||||||
|
if _, ok := built[pkgPath]; ok {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
var altPkg *packages.Cached
|
var altPkg *packages.Cached
|
||||||
var ssaPkg = createSSAPkg(prog, p, verbose)
|
var ssaPkg = createSSAPkg(prog, p, verbose)
|
||||||
if _, ok := hasAltPkg[p.PkgPath]; ok {
|
if _, ok := hasAltPkg[pkgPath]; ok {
|
||||||
if altPkg = ctx.dedup.Check(altPkgPathPrefix + p.PkgPath); altPkg == nil {
|
if altPkg = ctx.dedup.Check(altPkgPathPrefix + pkgPath); altPkg == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user