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
--dirargument is honored. Files from the first directory are not accessibleVersions 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
uncommon5012 added the bug label to Issue #13506.
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
--dirargument is honored. Files from the first directory are not accessibleVersions 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
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