diff --git a/src/common.zig b/src/common.zig index a2925baaf903791a980a9352d6ce6849a7ff7923..a8d1f3c6ed535c53585b532e6f35245991cef153 100644 --- a/src/common.zig +++ b/src/common.zig @@ -200,7 +200,7 @@ pub fn get_modpath(cachepath: string, d: zigmod.Dep, options: *CollectOptions) ! if (try u.does_folder_exist(p)) { try std.fs.cwd().deleteTree(p); } - const file_path = try std.fs.path.join(options.alloc, &.{ p, file_name }); + const file_path = try std.fs.path.resolve(options.alloc, &.{ p, file_name }); try d.type.pull(options.alloc, d.path, p); try std.fs.deleteFileAbsolute(file_path); return p;