I'm writing a host and WASM guest in Golang, and am unable to get the WASM guest to write to files, even when allowing it to using WASI's PreopenDir(). Attached are my test source files. I've tried various combinations of paths in PreopenDir() and in the guest's ioutil.WriteFile(), but every time I get a "file does not exist" error. Any ideas on how to make this work?
test.go
wasi.go
Last updated: Dec 23 2024 at 13:07 UTC