You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This'd perhaps be a good first issue for someone to get their feet wet if they're interested. The general idea to implement this would probably be something like:
Add a builder method to WasiCtxBuilder.
Fill in initial_cwd linked above to read the WasCtx "built value"
This'll still be None by default for backwards-compat
The wasmtime CLI can probably grow a few new options:
-S cwd=<path> - explicitly setting the path to the cwd
(if you're adventurous) -S inherit-fs - inherit the whole filesystem and set the cwd to the process's cwd
(if you're extra adventurous) unify -S inherit-* under -S inherit[=fs,network,...] where -S inherit can be "inherit the whole shebang" while -S inherit-fs could be -S inherit=fs.
For https://github.com/WebAssembly/wasi-cli/blob/main/wit/environment.wit, the
initial-cwd
implementation currently just returnsNone
. Adding this issue highlighted by theFIXME
:wasmtime/crates/wasi/src/host/env.rs
Lines 14 to 17 in 6691006
The text was updated successfully, but these errors were encountered: