From 9557477f4ccb8e487512c5a7c51df62ebade0606 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Tue, 28 Dec 2021 13:28:53 -0800 Subject: [PATCH] used wrong function to find path of build.zig, fixes #43 --- src/util/funcs.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/funcs.zig b/src/util/funcs.zig index a7fbad06c8720c20bd76db354b4033c40157e808..d2bb2ee5d5c56a4994455efbe7951d09575b8e27 100644 --- a/src/util/funcs.zig +++ b/src/util/funcs.zig @@ -256,7 +256,7 @@ pub fn detect_pkgname(alloc: std.mem.Allocator, override: string, dir: string) ! if (!(try does_file_exist(dirO, "build.zig"))) { return error.NoBuildZig; } - const dpath = try std.fs.realpathAlloc(alloc, try std.mem.concat(alloc, u8, &.{ dir, "build.zig" })); + const dpath = try std.fs.realpathAlloc(alloc, try std.fs.path.join(alloc, &.{ dir, "build.zig" })); const splitP = try split(alloc, dpath, std.fs.path.sep_str); var name = splitP[splitP.len - 2]; name = trim_prefix(name, "zig-"); -- 2.54.0