authorgravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-12-15 04:46:21 -08:00
committergravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-12-15 04:46:21 -08:00
loga0db32247bb63e1cdd14b00768d7ba1f272a4630
treec6bd71249aaaa0f9fce7d949da193b5da8ad08c8
parente200cf1b5505491274cbf12cdeb0478bf13f2370

dep- use path.join instead of allocprint with hard coded separator


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

src/util/dep.zig+1-1
......@@ -28,7 +28,7 @@ pub const Dep = struct {
2828 p = u.trim_prefix(p, "https://");
2929 p = u.trim_prefix(p, "git://");
3030 p = u.trim_suffix(u8, p, ".git");
31 p = try std.fmt.allocPrint(gpa, "{}{}{}", .{@tagName(self.type), "/", p});
31 p = try std.fs.path.join(gpa, &[_][]const u8{@tagName(self.type), p});
3232 return p;
3333 }
3434