Open Michael-F-Bryan opened 1 year ago
Is there any workaround for this issue? I want to read a file from wasm but I have no idea how to provide the file to wasm.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug
In the
wasix
branch (d34ce882e5e90ef500b51a2caacd5939e3397c82), theWasiStateBuilder::map_dir()
function is unable to map the current directory on the host to the.
directory on the guest.Steps to reproduce
I am attempting to map directories like this:
It looks like the
finalize()
call fails because we aren't able to get metadata for the current directory (which the error message refers to as a "file") because an "entry" wasn't found.Where
no_socket_accept.wasm
comes from this archive: inputs.zipExpected behavior
The directory should be mapped into the WASIX container.