diff options
author | Ayke van Laethem <[email protected]> | 2020-05-04 23:15:02 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2020-05-27 13:08:17 +0200 |
commit | 4ca2d3f0cf7b7e7b08770bd94be6edc98b7d48dd (patch) | |
tree | fe2b061402ce207c9824e1333e3ac066d2774ed1 /main.go | |
parent | 35015a791862c5afb5c929988ed7f6862dd3086b (diff) | |
download | tinygo-4ca2d3f0cf7b7e7b08770bd94be6edc98b7d48dd.tar.gz tinygo-4ca2d3f0cf7b7e7b08770bd94be6edc98b7d48dd.zip |
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.
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) } |