| ... | @@ -30,7 +30,7 @@ pub fn execute(args: [][]u8) !void { | ... | @@ -30,7 +30,7 @@ pub fn execute(args: [][]u8) !void { |
| 30 | | 30 | |
| 31 | const body_content = try r.readAllAlloc(gpa, std.math.maxInt(usize)); | 31 | const body_content = try r.readAllAlloc(gpa, std.math.maxInt(usize)); |
| 32 | var stream = std.json.TokenStream.init(body_content); | 32 | var stream = std.json.TokenStream.init(body_content); |
| 33 | const val = try std.json.parse([]Zpm.Package, &stream, .{}); | 33 | const val = try std.json.parse([]Zpm.Package, &stream, .{ .allocator = gpa }); |
| 34 | | 34 | |
| 35 | const found = blk: { | 35 | const found = blk: { |
| 36 | for (val) |pkg| { | 36 | for (val) |pkg| { |