Stream: git-wasmtime

Topic: wasmtime / issue #9695 implement initial-cwd for wasi:cli...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 29 2024 at 23:53):

ctaggart opened issue #9695:

For https://github.com/WebAssembly/wasi-cli/blob/main/wit/environment.wit, the initial-cwd implementation currently just returns None. Adding this issue highlighted by the FIXME:

https://github.com/bytecodealliance/wasmtime/blob/66910067642ce2ddf5509845306508f89a24fc9e/crates/wasi/src/host/env.rs#L14-L17

view this post on Zulip Wasmtime GitHub notifications bot (Dec 02 2024 at 23:04):

alexcrichton commented on issue #9695:

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:

view this post on Zulip Wasmtime GitHub notifications bot (Dec 02 2024 at 23:05):

alexcrichton added the good first issue label to Issue #9695.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 13 2024 at 10:58):

stephenmuss commented on issue #9695:

@alexcrichton I'd be keen to have a crack at this.

I have a wip branch and commit at https://github.com/stephenmuss/wasmtime/commit/af44736104b2803b451faa0e783461ab88515c29, would be good to know I'm heading down the right path.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 13 2024 at 16:59):

alexcrichton commented on issue #9695:

Looking good! That's mostly just missing a test and should be good to land :+1:

view this post on Zulip Wasmtime GitHub notifications bot (Oct 20 2025 at 17:06):

efJerryYang commented on issue #9695:

This issue seems already implemented in main branch:

https://github.com/search?q=repo%3Abytecodealliance%2Fwasmtime%20initial_cwd&type=code

Related PR and issues may need to be closed.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 20 2025 at 17:14):

alexcrichton commented on issue #9695:

Ah unfortunately not quite, there's no actual way to configure the field via WasiCtxBuilder nor is there a way to configure the cwd from the CLI, so those will need to be implemented before this is done.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 20 2025 at 19:18):

efJerryYang commented on issue #9695:

Ah I see, thanks for your clarification! I will take a closer look at current progress of this issue.


Last updated: Dec 13 2025 at 19:03 UTC