From 74a1e5a1945ffcfc8f6e43521a83a1434ecba051 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sun, 6 Mar 2022 16:07:13 -0800 Subject: [PATCH] cmd/fetch- fix latent crash in http dep type --- src/common.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.54.0