authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-31 10:45:18 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-31 10:45:18 -07:00
log5a126033d08bc8471ab458e0dc269052e6875c62
treeeea90ef7a0329f09158850f0a176830e6938083c
parentaa9bdacb3fa1fa747b3dcf440c0c3994ed25f992
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

missed a clean_path fix here


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

src/common.zig+4-1
...@@ -271,7 +271,10 @@ pub fn get_module_from_dep(d: *zigmod.Dep, cachepath: [:0]const u8, options: *Co...@@ -271,7 +271,10 @@ pub fn get_module_from_dep(d: *zigmod.Dep, cachepath: [:0]const u8, options: *Co
271 d.*.name = tryname;271 d.*.name = tryname;
272 d.*.main = trymain.?;272 d.*.main = trymain.?;
273 var mod_from = try zigmod.Module.from(options.alloc, d.*, cachepath, options);273 var mod_from = try zigmod.Module.from(options.alloc, d.*, cachepath, options);
274 if (d.type != .local) mod_from.clean_path = extras.trimPrefix(modpath, cachepath)[1..][0.. :0];274 if (d.type != .local) {
275 const new_clean_path = extras.trimPrefix(modpath, cachepath)[1..];
276 mod_from.clean_path = new_clean_path.ptr[0..new_clean_path.len :0];
277 }
275 if (mod_from.is_for_this()) return mod_from;278 if (mod_from.is_for_this()) return mod_from;
276 return null;279 return null;
277 }280 }