| ... | ... | @@ -116,8 +116,11 @@ pub const JobQueue = struct { |
| 116 | 116 | pub fn createDependenciesSource(jq: *JobQueue, buf: *std.ArrayList(u8)) Allocator.Error!void { |
| 117 | 117 | const keys = jq.table.keys(); |
| 118 | 118 | |
| 119 | | if (keys.len == 0) |
| 119 | assert(keys.len != 0); // caller should have added the first one |
| 120 | if (keys.len == 1) { |
| 121 | // This is the first one. It must have no dependencies. |
| 120 | 122 | return createEmptyDependenciesSource(buf); |
| 123 | } |
| 121 | 124 | |
| 122 | 125 | try buf.appendSlice("pub const packages = struct {\n"); |
| 123 | 126 | |