aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2020-05-04 23:15:02 +0200
committerRon Evans <[email protected]>2020-05-27 13:08:17 +0200
commit4ca2d3f0cf7b7e7b08770bd94be6edc98b7d48dd (patch)
treefe2b061402ce207c9824e1333e3ac066d2774ed1 /main.go
parent35015a791862c5afb5c929988ed7f6862dd3086b (diff)
downloadtinygo-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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 0d711ab35..feece4000 100644
--- a/main.go
+++ b/main.go
@@ -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)
}