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 program cannot compile on Windows because std.os.getenv is not cross-platform. It should be replaced with std.process.getEnvVarOwned.
How to Reproduce the Bug
Run zig build on windows.
Additional Context
D:\zig\lib\std\os.zig:1910:9: error: std.os.getenv is unavailable for Windows because environment string is in WTF-16 format. See std.process.getEnvVarOwned for cross-platform API or std.os.getenvW for Windows-specific API.
@compileError("std.os.getenv is unavailable for Windows because environment string is in WTF-16 format. See std.process.getEnvVarOwned for cross-platform API or std.os.getenvW for Windows-specific API.");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
referenced by:
getOrInitIdentity: src\gossip\cmd.zig:19:28
initSpy: src\gossip\cluster_info.zig:62:30
remaining reference traces hidden; use '-freference-trace' to see all reference traces
The text was updated successfully, but these errors were encountered:
Description
This program cannot compile on Windows because
std.os.getenv
is not cross-platform. It should be replaced withstd.process.getEnvVarOwned
.How to Reproduce the Bug
zig build
on windows.Additional Context
The text was updated successfully, but these errors were encountered: