| ... | ... | @@ -29,15 +29,15 @@ pub const Dep = struct { |
| 29 | 29 | p = u.trim_prefix(p, "https://"); |
| 30 | 30 | p = u.trim_prefix(p, "git://"); |
| 31 | 31 | 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}); |
| 33 | 33 | return p; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | pub fn clean_path_v(self: Dep) ![]const u8 { |
| 37 | 37 | 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}); |
| 39 | 39 | } |
| 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}); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | pub fn is_for_this(self: Dep) bool { |