pass more --dirs to wasmtime so it can read the entire module tree

This allows compress/flate to pass on -target=wasi out of the box

Fixes #2367
This commit is contained in:
Damian Gryski
2021-12-31 10:29:24 -08:00
committed by Ron Evans
parent 6afceb5621
commit c87bb0e9cc
3 changed files with 40 additions and 2 deletions
+8
View File
@@ -47,6 +47,14 @@ type PackageJSON struct {
ImportPath string
Name string
ForTest string
Root string
Module struct {
Path string
Main bool
Dir string
GoMod string
GoVersion string
}
// Source files
GoFiles []string