From 85223242a3720198a235b4416d47696a489b9c93 Mon Sep 17 00:00:00 2001 From: Meghan Date: Tue, 29 Dec 2020 12:32:13 -0800 Subject: [PATCH] fetch: now works on windows --- src/util/dep.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/dep.zig b/src/util/dep.zig index 148a8bc40fab3dfe0f47599ee4a96b2092c89e75..a1a7ad00c35403e25ae9b07c40c3699cc9e0ec58 100644 --- a/src/util/dep.zig +++ b/src/util/dep.zig @@ -29,15 +29,15 @@ pub const Dep = struct { p = u.trim_prefix(p, "https://"); p = u.trim_prefix(p, "git://"); p = u.trim_suffix(u8, p, ".git"); - p = try std.fs.path.join(gpa, &[_][]const u8{@tagName(self.type), p}); + p = try std.mem.join(gpa, "/", &[_][]const u8{@tagName(self.type), p}); return p; } pub fn clean_path_v(self: Dep) ![]const u8 { if (self.type == .http and self.version.len > 0) { - return std.fs.path.join(gpa, &[_][]const u8{"v", @tagName(self.type), self.version}); + return std.mem.join(gpa, "/", &[_][]const u8{"v", @tagName(self.type), self.version}); } - return std.fs.path.join(gpa, &[_][]const u8{"v", try self.clean_path(), self.version}); + return std.mem.join(gpa, "/", &[_][]const u8{"v", try self.clean_path(), self.version}); } pub fn is_for_this(self: Dep) bool { -- 2.54.0