rename env_map to environ_map

For naming consistency with `std.process.Environ.Map`.
This commit is contained in:
Andrew Kelley
2026-01-02 21:57:47 -08:00
parent f25de4c7a2
commit 1070c2a71a
37 changed files with 290 additions and 291 deletions
+2 -2
View File
@@ -132,7 +132,7 @@ pub fn main(init: std.process.Init) !void {
const io = init.io;
const args = try init.minimal.args.toSlice(arena);
const cwd_path = try std.process.getCwdAlloc(arena);
const env_map = init.env_map;
const environ_map = init.environ_map;
var search_paths = std.array_list.Managed([]const u8).init(arena);
var opt_out_dir: ?[]const u8 = null;
@@ -256,7 +256,7 @@ pub fn main(init: std.process.Init) !void {
switch (entry.kind) {
.directory => try dir_stack.append(full_path),
.file, .sym_link => {
const rel_path = try Dir.path.relative(arena, cwd_path, env_map, target_include_dir, full_path);
const rel_path = try Dir.path.relative(arena, cwd_path, environ_map, target_include_dir, full_path);
const max_size = 2 * 1024 * 1024 * 1024;
const raw_bytes = try Dir.cwd().readFileAlloc(io, full_path, arena, .limited(max_size));
const trimmed = std.mem.trim(u8, raw_bytes, " \r\n\t");