diff --git a/go/tools/builders/nogo_main.go b/go/tools/builders/nogo_main.go index c6156e1dab..4f65f117f8 100644 --- a/go/tools/builders/nogo_main.go +++ b/go/tools/builders/nogo_main.go @@ -609,8 +609,8 @@ func (i *importer) Import(path string) (*types.Package, error) { return gcexportdata.Read(r, i.fset, i.packageCache, path) } -func (i *importer) readFacts(pkgPath string) ([]byte, error) { - archive := i.factMap[pkgPath] +func (i *importer) readFacts(pkg *types.Package) ([]byte, error) { + archive := i.factMap[pkg.Path()] if archive == "" { // Packages that were not built with the nogo toolchain will not be // analyzed, so there's no opportunity to store facts. This includes