| author | |
| committer | |
| log | 93950d9a7c4cd155849eb441e641681e8fafd52c |
| tree | 4c09511c56b43f77a70a174dff34516dcec1dcfb |
| parent | fcd70831ae5913e52ccc87149bcc99859eb0e81d |
| signature |
Not sure if this is the right place or correct message but I got an error trace doing zigmod init without a `build.zig` file1 files changed, 1 insertions(+), 0 deletions(-)
src/cmd/init.zig+1| ... | ... | @@ -26,6 +26,7 @@ fn detect_pkgname(def: []const u8) ![]const u8 { |
| 26 | 26 | if (def.len > 0) { |
| 27 | 27 | return def; |
| 28 | 28 | } |
| 29 | u.assert(try u.does_file_exist("build.zig"), "init requires a build.zig file", .{}); | |
| 29 | 30 | const dpath = try std.fs.cwd().realpathAlloc(gpa, "build.zig"); |
| 30 | 31 | const split = try u.split(dpath, std.fs.path.sep_str); |
| 31 | 32 | var name = split[split.len - 2]; |