Commit c5b972e
feat(diff): record copiesCrc for every copied entry in package diffs
Same-path copies previously carried no content checksum, so a client
applying a pdiff on a rebuilt binary could copy a path-matched but
content-drifted resource unverified (BUNDLEHASH_MIGRATION.md §4.2.1).
Existing clients only consult copiesCrc when the path lookup fails, so
the extra entries are backward-compatible; verification lands with the
client-side consumer.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent e5e43a2 commit c5b972e
2 files changed
Lines changed: 19 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
671 | 674 | | |
672 | 675 | | |
673 | 676 | | |
| |||
723 | 726 | | |
724 | 727 | | |
725 | 728 | | |
| 729 | + | |
726 | 730 | | |
727 | 731 | | |
728 | 732 | | |
729 | 733 | | |
730 | 734 | | |
731 | 735 | | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | 736 | | |
736 | 737 | | |
737 | 738 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | | - | |
| 455 | + | |
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
510 | 517 | | |
511 | | - | |
| 518 | + | |
512 | 519 | | |
513 | 520 | | |
514 | 521 | | |
| |||
0 commit comments