commit 42998e637b29df66992d10be270fb97e47758fba (tree)
parent 1033d71017c9c40bd55f1743cd7990024c892af7
Author: Ryan Liptak <squeek502@hotmail.com>
Date: Tue, 10 Oct 2023 17:38:07 -0700
Package: Fix path separator not being escaped between root_dir and sub_path
Fixes a package fetching regression on Windows. Closes #17477
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Package.zig b/src/Package.zig
@@ -124,7 +124,7 @@ pub const Path = struct {
};
if (self.root_dir.path) |p| {
try stringEscape(p, f, options, writer);
- if (self.sub_path.len > 0) try writer.writeAll(fs.path.sep_str);
+ if (self.sub_path.len > 0) try stringEscape(fs.path.sep_str, f, options, writer);
}
if (self.sub_path.len > 0) {
try stringEscape(self.sub_path, f, options, writer);