-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add file system WASI call stubs to support wider Wasm binaries #199
Comments
Do you have an example for when those imports are generated? I've built all examples from Proxy-Wasm Go SDK using TinyGo v0.20.0 and the development version, but none of them try to list preopened files. We need to add those functions for #127, so stubs are fine in the meantime, but I'm wondering if there is a bug in TinyGo that results in unnecessary imports. |
@PiotrSikora yeah here's the example: package main
import "time"
func main() {
println(time.Now().Second())
} This would expects these exports in the hosts. I think this stems from the usage of local time zone info (which in tern uses sync package) on time.Time type in the |
sorry so maybe the description was wrong -- this issue has existed in the first place and users haven't been able to (heavily used) time.Time struct. |
Resolves #199. Signed-off-by: mathetake <[email protected]>
Some of TinyGo app have started emitting binaries with file system related WASI system calls:
So it would be helpful if we could add stubs for it even though we cannot actually support them. Relevant to #127
The text was updated successfully, but these errors were encountered: