Stream: git-wasmtime

Topic: wasmtime / issue #13506 Cannot use `--dir /` and `--dir ....


view this post on Zulip Wasmtime GitHub notifications bot (May 28 2026 at 23:52):

uncommon5012 opened issue #13506:

Test Case

pre-compiled wasm2c binary from wabt toolchain

Steps to Reproduce

Run wasm module with --dir / and --dir . at the same time.

Expected Results

Module should have access to absolute and relative paths

Actual Results

Only the last --dir argument is honored. Files from the first directory are not accessible

Versions and Environment

Wasmtime version or commit: wasmtime 45.0.0 (377cd917a 2026-05-21)

Operating system: GNU/Linux

Architecture: x86_64

Extra Info

Specifying non-root directory along with . works as expected, like:

wasmtime --dir /home --dir . -- ./wasm2c /home/user/file

view this post on Zulip Wasmtime GitHub notifications bot (May 28 2026 at 23:52):

uncommon5012 added the bug label to Issue #13506.

view this post on Zulip Wasmtime GitHub notifications bot (May 29 2026 at 00:02):

alexcrichton closed issue #13506:

Test Case

pre-compiled wasm2c binary from wabt toolchain

Steps to Reproduce

Run wasm module with --dir / and --dir . at the same time.

Expected Results

Module should have access to absolute and relative paths

Actual Results

Only the last --dir argument is honored. Files from the first directory are not accessible

Versions and Environment

Wasmtime version or commit: wasmtime 45.0.0 (377cd917a 2026-05-21)

Operating system: GNU/Linux

Architecture: x86_64

Extra Info

Specifying non-root directory along with . works as expected, like:

wasmtime --dir /home --dir . -- ./wasm2c /home/user/file

view this post on Zulip Wasmtime GitHub notifications bot (May 29 2026 at 00:02):

alexcrichton commented on issue #13506:

Thanks for the report! This is an issue with wasi-libc, however, not Wasmtime. Wasmtime just tells wasi-libc what's been provided, and wasi-libc is the one doing path resolution. Could you open an issue over there?


Last updated: Jun 01 2026 at 09:49 UTC