authorgravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-12-29 12:32:13 -08:00
committergravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-12-29 12:32:13 -08:00
log85223242a3720198a235b4416d47696a489b9c93
treeed5ce561ad696ebe495bceefb2dc3ca40950e0f8
parent6a2424e83d974bd354b00c4e3c5d6a4edc8166b0

fetch: now works on windows


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

src/util/dep.zig+3-3
......@@ -29,15 +29,15 @@ pub const Dep = struct {
2929 p = u.trim_prefix(p, "https://");
3030 p = u.trim_prefix(p, "git://");
3131 p = u.trim_suffix(u8, p, ".git");
32 p = try std.fs.path.join(gpa, &[_][]const u8{@tagName(self.type), p});
32 p = try std.mem.join(gpa, "/", &[_][]const u8{@tagName(self.type), p});
3333 return p;
3434 }
3535
3636 pub fn clean_path_v(self: Dep) ![]const u8 {
3737 if (self.type == .http and self.version.len > 0) {
38 return std.fs.path.join(gpa, &[_][]const u8{"v", @tagName(self.type), self.version});
38 return std.mem.join(gpa, "/", &[_][]const u8{"v", @tagName(self.type), self.version});
3939 }
40 return std.fs.path.join(gpa, &[_][]const u8{"v", try self.clean_path(), self.version});
40 return std.mem.join(gpa, "/", &[_][]const u8{"v", try self.clean_path(), self.version});
4141 }
4242
4343 pub fn is_for_this(self: Dep) bool {