| ... | ... | @@ -548,9 +548,11 @@ const Os = switch (builtin.os.tag) { |
| 548 | 548 | } |
| 549 | 549 | |
| 550 | 550 | fn update(w: *Watch, steps: []const Configuration.Step.Index) !void { |
| 551 | | const gpa = w.maker.gpa; |
| 551 | const maker = w.maker; |
| 552 | const gpa = maker.gpa; |
| 552 | 553 | // Add missing marks and note persisted ones. |
| 553 | | for (steps) |step| { |
| 554 | for (steps) |step_index| { |
| 555 | const step = maker.stepByIndex(step_index); |
| 554 | 556 | for (step.inputs.table.keys(), step.inputs.table.values()) |path, *files| { |
| 555 | 557 | const dir = dir: { |
| 556 | 558 | const gop = try w.dir_table.getOrPut(gpa, path); |
| ... | ... | @@ -579,7 +581,7 @@ const Os = switch (builtin.os.tag) { |
| 579 | 581 | for (files.items) |basename| { |
| 580 | 582 | const gop = try dir.reaction_set.getOrPut(gpa, basename); |
| 581 | 583 | if (!gop.found_existing) gop.value_ptr.* = .{}; |
| 582 | | try gop.value_ptr.put(gpa, step, w.generation); |
| 584 | try gop.value_ptr.put(gpa, step_index, w.generation); |
| 583 | 585 | } |
| 584 | 586 | } |
| 585 | 587 | } |