authorgravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-12-28 19:25:38 -08:00
committergravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-12-28 19:25:38 -08:00
log08cb7ba6cf1cf2c484c495c98ab1471c14f9b42f
tree708f0eb693640fcecf897619243048b6acba352f
parent2037bbfdf397c933ccd7b284d7cdb4155c8c2037

init: dont assume / for path sep


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

src/cmd_init.zig+2-2
......@@ -42,10 +42,10 @@ fn detct_mainfile(def: []const u8) ![]const u8 {
4242 }
4343 }
4444 }
45 if (try u.does_file_exist("./src/lib.zig")) {
45 if (try u.does_file_exist(try std.fs.path.join(gpa, &[_][]const u8{"src", "lib.zig"}))) {
4646 return "src/lib.zig";
4747 }
48 if (try u.does_file_exist("./src/main.zig")) {
48 if (try u.does_file_exist(try std.fs.path.join(gpa, &[_][]const u8{"src", "main.zig"}))) {
4949 return "src/main.zig";
5050 }
5151 u.assert(false, "unable to detect package entry point", .{});