From bb3dad1309106cd512527abf6c32e6d774759fd7 Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Sat, 8 Mar 2025 09:51:35 -0600 Subject: [PATCH] core: all paths referenced from the CLI must be expanded --- src/config/Config.zig | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/config/Config.zig b/src/config/Config.zig index 753aa6283..c056b9ab1 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -2639,11 +2639,10 @@ pub fn loadCliArgs(self: *Config, alloc_gpa: Allocator) !void { } } - // Config files loaded from the CLI args are relative to pwd - if (self.@"config-file".value.items.len > 0) { - var buf: [std.fs.max_path_bytes]u8 = undefined; - try self.expandPaths(try std.fs.cwd().realpath(".", &buf)); - } + // Any paths referenced from the CLI are relative to the current working + // directory. + var buf: [std.fs.max_path_bytes]u8 = undefined; + try self.expandPaths(try std.fs.cwd().realpath(".", &buf)); } /// Load and parse the config files that were added in the "config-file" key.