Skip to content

Commit 250a2d0

Browse files
committed
fix?: remove SEAMSTRESS_HOME
1 parent be94e9d commit 250a2d0

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/main.zig

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -126,19 +126,19 @@ fn setEnvironmentVariables(allocator: std.mem.Allocator) !EnvBlockType {
126126
try map.put(key, value);
127127
}
128128
}
129-
if (map.get("SEAMSTRESS_HOME") == null) {
130-
const home = map.get("HOME") orelse {
131-
std.debug.print(
132-
\\$HOME and $SEAMSTRESS_HOME undefined!
133-
\\define $SEAMSTRESS_HOME and try again
134-
\\
135-
, .{});
136-
std.process.exit(1);
137-
};
138-
const seamstress_home = try std.fs.path.join(allocator, &.{ home, "seamstress" });
139-
defer allocator.free(seamstress_home);
140-
try map.put("SEAMSTRESS_HOME", seamstress_home);
141-
}
129+
// if (map.get("SEAMSTRESS_HOME") == null) {
130+
// const home = map.get("HOME") orelse {
131+
// std.debug.print(
132+
// \\$HOME and $SEAMSTRESS_HOME undefined!
133+
// \\define $SEAMSTRESS_HOME and try again
134+
// \\
135+
// , .{});
136+
// std.process.exit(1);
137+
// };
138+
// const seamstress_home = try std.fs.path.join(allocator, &.{ home, "seamstress" });
139+
// defer allocator.free(seamstress_home);
140+
// try map.put("SEAMSTRESS_HOME", seamstress_home);
141+
// }
142142
return switch (builtin.os.tag) {
143143
.windows => try std.process.createWindowsEnvBlock(allocator, &map),
144144
.macos, .linux => try std.process.createEnvironFromMap(allocator, &map, .{}),

0 commit comments

Comments
 (0)