Repository navigation
Commit 85a011b
* Start fix for rollback note on vendored gems
Refs #2214.
Assisted-by: Claude Code:claude-fable-5-2
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011f9aeQWcPFYLN6RCQyh8RM
* Skip rollback note for an upstream gem install
A gem that was only ever vendored has no patched byte in a gem
home: Bundler loaded it from .socket/vendor. Rollback counted it
as keeping its patched bytes anyway, because only a refreshed or
in-place-restored copy was left out, and --json pushed
reinstall_required whenever anything was unwired.
The vendored gem unwind now reports the gems whose installed
copies are proven to be the upstream build (the archive in the
gem home has the verified upstream sha256 and no recorded patch
is in the files) or that are not installed. Rollback leaves them
out, and derives the --json warning from the same count as the
human note.
Fixes #2214.
Assisted-by: Claude Code:claude-fable-5-2
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011f9aeQWcPFYLN6RCQyh8RM
* Require proof before dropping the gem note
Review found the first cut too generous: a copy agent mode patched
in place sits beside the upstream archive, a gem with no copy found
may live in a gem home this run cannot see, and a partly patched
copy does not hold the whole patch.
A vendored gem is now left out of rollback's reinstall count only
when it has an installed copy and every copy is proven upstream:
its archive has the verified upstream sha256 and every file of the
gem's ledger record is in its pre-patch state.
Refs #2214.
Assisted-by: Claude Code:claude-fable-5-2
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011f9aeQWcPFYLN6RCQyh8RM
* Pin the rollback note with a real Bundler
The get-vendored capstone installs rack with a real Bundler and
vendors it through a detached ledger entry. Roll it back at the
end: the pair is restored byte for byte, Bundler's own install was
upstream all along, and no reinstall_required warning is raised.
Refs #2214.
Assisted-by: Claude Code:claude-fable-5-2
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011f9aeQWcPFYLN6RCQyh8RM
* Count an added file that is present as patched
verify_file_patch says Ready for a file the patch adds when it is
there with other content, since apply overwrites it. For the proof
that an installed gem never got its patch, only the file's absence
counts.
Refs #2214.
Assisted-by: Claude Code:claude-fable-5-2
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011f9aeQWcPFYLN6RCQyh8RM
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 74b3306 commit 85a011b
7 files changed
Lines changed: 439 additions & 72 deletions
File tree
- crates/socket-patch-cli
- src/commands
- vendored_backend
- tests
- docs
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1039 | 1039 | | |
1040 | 1040 | | |
1041 | 1041 | | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
1042 | 1048 | | |
1043 | 1049 | | |
1044 | 1050 | | |
| |||
1240 | 1246 | | |
1241 | 1247 | | |
1242 | 1248 | | |
| 1249 | + | |
1243 | 1250 | | |
1244 | 1251 | | |
1245 | 1252 | | |
| |||
1250 | 1257 | | |
1251 | 1258 | | |
1252 | 1259 | | |
1253 | | - | |
1254 | | - | |
1255 | | - | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
1256 | 1264 | | |
1257 | 1265 | | |
1258 | | - | |
1259 | | - | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
1260 | 1315 | | |
1261 | | - | |
1262 | | - | |
1263 | | - | |
1264 | | - | |
1265 | | - | |
1266 | | - | |
1267 | | - | |
1268 | | - | |
1269 | | - | |
1270 | | - | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
1271 | 1343 | | |
1272 | 1344 | | |
1273 | 1345 | | |
| |||
1440 | 1512 | | |
1441 | 1513 | | |
1442 | 1514 | | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
1443 | 1519 | | |
1444 | | - | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
1445 | 1524 | | |
1446 | 1525 | | |
1447 | 1526 | | |
| |||
1499 | 1578 | | |
1500 | 1579 | | |
1501 | 1580 | | |
| 1581 | + | |
| 1582 | + | |
1502 | 1583 | | |
1503 | 1584 | | |
1504 | 1585 | | |
| |||
1512 | 1593 | | |
1513 | 1594 | | |
1514 | 1595 | | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
1515 | 1654 | | |
1516 | 1655 | | |
1517 | 1656 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1108 | 1108 | | |
1109 | 1109 | | |
1110 | 1110 | | |
1111 | | - | |
1112 | | - | |
1113 | | - | |
1114 | | - | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
1115 | 1115 | | |
1116 | 1116 | | |
1117 | 1117 | | |
| |||
1144 | 1144 | | |
1145 | 1145 | | |
1146 | 1146 | | |
1147 | | - | |
| 1147 | + | |
1148 | 1148 | | |
1149 | 1149 | | |
1150 | 1150 | | |
1151 | 1151 | | |
1152 | | - | |
1153 | | - | |
| 1152 | + | |
| 1153 | + | |
1154 | 1154 | | |
1155 | 1155 | | |
1156 | 1156 | | |
| |||
2753 | 2753 | | |
2754 | 2754 | | |
2755 | 2755 | | |
2756 | | - | |
2757 | | - | |
2758 | | - | |
2759 | 2756 | | |
2760 | 2757 | | |
2761 | 2758 | | |
2762 | 2759 | | |
2763 | 2760 | | |
2764 | 2761 | | |
2765 | 2762 | | |
2766 | | - | |
| 2763 | + | |
| 2764 | + | |
| 2765 | + | |
| 2766 | + | |
| 2767 | + | |
| 2768 | + | |
| 2769 | + | |
| 2770 | + | |
| 2771 | + | |
| 2772 | + | |
| 2773 | + | |
| 2774 | + | |
| 2775 | + | |
| 2776 | + | |
| 2777 | + | |
| 2778 | + | |
| 2779 | + | |
| 2780 | + | |
| 2781 | + | |
| 2782 | + | |
| 2783 | + | |
| 2784 | + | |
| 2785 | + | |
| 2786 | + | |
| 2787 | + | |
| 2788 | + | |
| 2789 | + | |
2767 | 2790 | | |
2768 | 2791 | | |
2769 | 2792 | | |
| |||
3060 | 3083 | | |
3061 | 3084 | | |
3062 | 3085 | | |
3063 | | - | |
3064 | | - | |
3065 | | - | |
3066 | | - | |
3067 | | - | |
3068 | | - | |
3069 | | - | |
3070 | | - | |
3071 | | - | |
3072 | | - | |
3073 | | - | |
3074 | | - | |
3075 | | - | |
3076 | | - | |
3077 | | - | |
3078 | | - | |
3079 | | - | |
3080 | | - | |
3081 | | - | |
3082 | | - | |
3083 | | - | |
3084 | | - | |
3085 | | - | |
3086 | | - | |
3087 | | - | |
3088 | | - | |
3089 | 3086 | | |
3090 | 3087 | | |
3091 | 3088 | | |
| |||
7138 | 7135 | | |
7139 | 7136 | | |
7140 | 7137 | | |
7141 | | - | |
| 7138 | + | |
7142 | 7139 | | |
7143 | 7140 | | |
7144 | 7141 | | |
| |||
0 commit comments