mirror of
https://github.com/ziglang/zig.git
synced 2026-10-14 10:27:43 -04:00
Package: Fix path separator not being escaped between root_dir and sub_path
Fixes a package fetching regression on Windows. Closes #17477
This commit is contained in:
1 parent
1033d71017
commit
42998e637b
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user