Skip to content

Commit ca1b3b2

Browse files
committed
deps.zig: always resolve cachepath to an absolute dir
1 parent a152744 commit ca1b3b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/funcs.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,5 +222,5 @@ pub fn find_cachepath() !string {
222222
if (std.mem.indexOf(u8, haystack, needle)) |index| {
223223
return haystack[0 .. index + needle.len];
224224
}
225-
return try std.fs.path.join(gpa, &.{ ".zigmod", "deps" });
225+
return try std.fs.path.join(gpa, &.{ haystack, ".zigmod", "deps" });
226226
}

0 commit comments

Comments
 (0)