| ... | @@ -361,6 +361,7 @@ pub fn add_files_package(alloc: std.mem.Allocator, cachepath: string, pkg_name: | ... | @@ -361,6 +361,7 @@ pub fn add_files_package(alloc: std.mem.Allocator, cachepath: string, pkg_name: |
| 361 | pub fn parse_lockfile(alloc: std.mem.Allocator, dir: std.fs.Dir) ![]const [4]string { | 361 | pub fn parse_lockfile(alloc: std.mem.Allocator, dir: std.fs.Dir) ![]const [4]string { |
| 362 | var list = std.ArrayList([4]string).init(alloc); | 362 | var list = std.ArrayList([4]string).init(alloc); |
| 363 | const max = std.math.maxInt(usize); | 363 | const max = std.math.maxInt(usize); |
| | 364 | if (!try u.does_file_exist(dir, "zigmod.lock")) return &[_][4]string{}; |
| 364 | const f = try dir.openFile("zigmod.lock", .{}); | 365 | const f = try dir.openFile("zigmod.lock", .{}); |
| 365 | const r = f.reader(); | 366 | const r = f.reader(); |
| 366 | var i: usize = 0; | 367 | var i: usize = 0; |