stdlib suggests using selfExePathAlloc instead of selfExePath on wasi even though the former calls the latter #17085
Labels
bug
Observed behavior contradicts documented or intended behavior
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
standard library
This issue involves writing Zig code for the standard library.
Milestone
Zig Version
0.12.0-dev.278+0e8f130ae
Steps to Reproduce and Observed Behavior
attempt to use
std.fs.selfExePath
with wasi as the target OSmet with error message
std.fs.selfExePath not supported for WASI. Use std.fs.selfExePathAlloc instead.
zig/lib/std/fs.zig
Line 3072 in b0d9bb0
use
selfExePathAlloc
as suggested but same errorzig/lib/std/fs.zig
Line 2977 in b0d9bb0
Expected Behavior
compile error should give a correct message
The text was updated successfully, but these errors were encountered: