From d58b618c74216004da556413c0fafad2e9650c5d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 2 Jan 2025 12:55:38 -0800 Subject: [PATCH] config: windows can't expand homedir (yet) --- src/config/Config.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/config/Config.zig b/src/config/Config.zig index 171d9dd12..e9052a66e 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -4365,7 +4365,10 @@ pub const RepeatablePath = struct { // Check if the path starts with a tilde and expand it to the // home directory on Linux/macOS. We explicitly look for "~/" // because we don't support alternate users such as "~alice/" - if (std.mem.startsWith(u8, path, "~/")) { + if (std.mem.startsWith(u8, path, "~/")) expand: { + // Windows isn't supported yet + if (comptime builtin.os.tag == .windows) break :expand; + const expanded: []const u8 = internal_os.expandHome( path, &buf,