update dependencies

Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
hongming
2020-12-22 16:48:26 +08:00
parent 4a11a50544
commit fe6c5de00f
2857 changed files with 252134 additions and 115656 deletions

View File

@@ -243,6 +243,9 @@ func (l *loader) typeCheck(pkg *Package) {
// The imports map is keyed by import path.
importedPkg := pkg.Imports()[path]
if importedPkg == nil {
return nil, fmt.Errorf("package %q possibly creates an import loop", path)
}
// it's possible to have a call to check in parallel to a call to this
// if one package in the package graph gets its dependency filtered out,
@@ -255,10 +258,6 @@ func (l *loader) typeCheck(pkg *Package) {
importedPkg.Lock()
defer importedPkg.Unlock()
if importedPkg == nil {
return nil, fmt.Errorf("no package information for %q", path)
}
if importedPkg.Types != nil && importedPkg.Types.Complete() {
return importedPkg.Types, nil
}