loader: load packages using Go modules

This commit replaces the existing ad-hoc package loader with a package
loader that uses the x/tools/go/packages package to find all
to-be-loaded packages.
This commit is contained in:
Ayke van Laethem
2020-05-04 23:15:02 +02:00
committed by Ron Evans
parent 35015a7918
commit 4ca2d3f0cf
5 changed files with 179 additions and 343 deletions
+1 -1
View File
@@ -733,7 +733,7 @@ func printCompilerError(logln func(...interface{}), err error) {
}
}
case loader.Errors:
logln("#", err.Pkg.ImportPath)
logln("#", err.Pkg.PkgPath)
for _, err := range err.Errs {
printCompilerError(logln, err)
}