authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2022-03-06 16:07:13 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2022-03-06 16:07:13 -08:00
log74a1e5a1945ffcfc8f6e43521a83a1434ecba051
treea13337f2101ea3e8c4aeee0d6cdc747f28dbd192
parentb84b5b55b06a5117e03acee33ed40b7b90a1fe1c

cmd/fetch- fix latent crash in http dep type


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

src/common.zig+1-1
......@@ -200,7 +200,7 @@ pub fn get_modpath(cachepath: string, d: zigmod.Dep, options: *CollectOptions) !
200200 if (try u.does_folder_exist(p)) {
201201 try std.fs.cwd().deleteTree(p);
202202 }
203 const file_path = try std.fs.path.join(options.alloc, &.{ p, file_name });
203 const file_path = try std.fs.path.resolve(options.alloc, &.{ p, file_name });
204204 try d.type.pull(options.alloc, d.path, p);
205205 try std.fs.deleteFileAbsolute(file_path);
206206 return p;