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
fix: pass process environ to Io backend, fixing AppDataDirUnavailable
runtime.init() was calling Threaded.init(gpa, .{}) without passing the
process environ. The default environ in InitOptions is .empty, so all
child processes spawned via std.process.run/spawn received zero
environment variables.
This caused 'mer dev', 'mer build', and 'mer update' to fail on Linux
with 'unable to resolve zig cache directory: AppDataDirUnavailable'
because the child zig process had no HOME variable.
Fix: accept environ as a parameter in runtime.init() and forward it to
the Io backend (Threaded or Evented). All callsites now pass
init.environ from the Init.Minimal entry point.
Fixes child process environment inheritance on all platforms.
0 commit comments