Skip to content

Commit 42998e6

Browse files
squeek502andrewrk
authored andcommitted
Package: Fix path separator not being escaped between root_dir and sub_path
Fixes a package fetching regression on Windows. Closes #17477
1 parent 1033d71 commit 42998e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Package.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ pub const Path = struct {
124124
};
125125
if (self.root_dir.path) |p| {
126126
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);
128128
}
129129
if (self.sub_path.len > 0) {
130130
try stringEscape(self.sub_path, f, options, writer);

0 commit comments

Comments
 (0)