authorgravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2023-10-10 17:38:07-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-10-10 23:02:03-07:00
log42998e637b29df66992d10be270fb97e47758fba
tree960572c5b09d4e0b97a8d123ea904842db48c8b3
parent1033d71017c9c40bd55f1743cd7990024c892af7

Package: Fix path separator not being escaped between root_dir and sub_path

Fixes a package fetching regression on Windows. Closes #17477

1 files changed, 1 insertions(+), 1 deletions(-)

src/Package.zig+1-1
...@@ -124,7 +124,7 @@ pub const Path = struct {...@@ -124,7 +124,7 @@ pub const Path = struct {
124 };124 };
125 if (self.root_dir.path) |p| {125 if (self.root_dir.path) |p| {
126 try stringEscape(p, f, options, writer);126 try stringEscape(p, f, options, writer);
127 if (self.sub_path.len > 0) try writer.writeAll(fs.path.sep_str);127 if (self.sub_path.len > 0) try stringEscape(fs.path.sep_str, f, options, writer);
128 }128 }
129 if (self.sub_path.len > 0) {129 if (self.sub_path.len > 0) {
130 try stringEscape(self.sub_path, f, options, writer);130 try stringEscape(self.sub_path, f, options, writer);