We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
could not preopen dir in host
Code using wasmer 4.4.0
let mut wasienv = WasiEnv::builder("hello") .stdout(Box::new(stdout_tx)) .map_dir(".", current_dir)?; wasienv.run_with_store(module, &mut store)?;
when execute, there is a error like this
error: Init(WasiFsCreationError("Could not get metadata for file \" file_name\"": entry not found
I guess that the problem is related to the host_fs,so i add hostfs in code, and it work, it seems that default hostfs of wasmer-wasix not work?
let runtime = tokio::runtime::Runtime::new().unwrap(); let guard =runtime.enter(); let wasienv = WasiEnv::builder("hello") .fs( Box::new(virtual_fs::host_fs::FileSystem::new(Handle::current(), "/").unwrap())) .stdout(Box::new(stdout_tx)) .map_dir(".", current_dir)?;
The text was updated successfully, but these errors were encountered:
Thanks for reporting, we'll investigate
Sorry, something went wrong.
maminrayej
No branches or pull requests
Summary
could not preopen dir in host
Additional details
Code using wasmer 4.4.0
when execute, there is a error like this
I guess that the problem is related to the host_fs,so i add hostfs in code, and it work, it seems that default hostfs of wasmer-wasix not work?
The text was updated successfully, but these errors were encountered: