| ... | ... | @@ -256,7 +256,7 @@ pub fn detect_pkgname(alloc: std.mem.Allocator, override: string, dir: string) ! |
| 256 | 256 | if (!(try does_file_exist(dirO, "build.zig"))) { |
| 257 | 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 | 260 | const splitP = try split(alloc, dpath, std.fs.path.sep_str); |
| 261 | 261 | var name = splitP[splitP.len - 2]; |
| 262 | 262 | name = trim_prefix(name, "zig-"); |