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: Nov 22 2024 at 16:03 UTC