diff --git a/src/util/modfile.zig b/src/util/modfile.zig index 03682c4bc8e5103ae98e4b0d2514e4b8b496dfb2..e3cda2deefa877de5a57a02d6f10ae9959853e8d 100644 --- a/src/util/modfile.zig +++ b/src/util/modfile.zig @@ -32,7 +32,7 @@ pub const ModFile = struct { pub fn openFile(dir: std.fs.Dir, ops: std.fs.File.OpenFlags) !std.fs.File { return dir.openFile("zig.mod", ops) catch |err| switch (err) { - error.FileNotFound => dir.openFile("zigmod.yml", .{}) catch |err2| switch (err2) { + error.FileNotFound => dir.openFile("zigmod.yml", ops) catch |err2| switch (err2) { error.FileNotFound => return error.ManifestNotFound, else => |e2| return e2, },