authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-12-28 13:28:53 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-12-28 13:28:53 -08:00
log9557477f4ccb8e487512c5a7c51df62ebade0606
tree6469c620a6aa4ba7e2b634d5a66f71d749241411
parent58ea4175f98b725c22eac691a41c0b03f9dcdebb

used wrong function to find path of build.zig, fixes #43


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

src/util/funcs.zig+1-1
...@@ -256,7 +256,7 @@ pub fn detect_pkgname(alloc: std.mem.Allocator, override: string, dir: string) !...@@ -256,7 +256,7 @@ pub fn detect_pkgname(alloc: std.mem.Allocator, override: string, dir: string) !
256 if (!(try does_file_exist(dirO, "build.zig"))) {256 if (!(try does_file_exist(dirO, "build.zig"))) {
257 return error.NoBuildZig;257 return error.NoBuildZig;
258 }258 }
259 const dpath = try std.fs.realpathAlloc(alloc, try std.mem.concat(alloc, u8, &.{ dir, "build.zig" }));259 const dpath = try std.fs.realpathAlloc(alloc, try std.fs.path.join(alloc, &.{ dir, "build.zig" }));
260 const splitP = try split(alloc, dpath, std.fs.path.sep_str);260 const splitP = try split(alloc, dpath, std.fs.path.sep_str);
261 var name = splitP[splitP.len - 2];261 var name = splitP[splitP.len - 2];
262 name = trim_prefix(name, "zig-");262 name = trim_prefix(name, "zig-");