Repository navigation
Commit 6af8cd6
* Start the vendored gem unwind platform fix
Claims #2174: the vendored unwind judges only the ruby-platform
build of an unwound gem, so a precompiled platform build that a
hosted scan replaced stays patched.
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_011f9aeQwRPCRjnzyQ3rqcZr
* Test the vendored unwind of a platform gem
A gem locked as precompiled platform gems that a hosted scan
patched and a vendored run then took over keeps its patched
installed copy after rollback, remove and vendor --revert
(#2174). The takeover leg of the platform prebuild capstone
fails on that until the unwind follows the lock's builds.
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_011f9aeQwRPCRjnzyQ3rqcZr
* Refresh platform builds on a vendored gem unwind
After a vendored unwind put a gem back on its upstream entry,
the refresh looked only for the ruby-platform installed copy
(<name>-<version>). A gem vendored from prebuilt platform gems
is installed as <name>-<version>-<platform>, so a copy a hosted
scan had replaced with the patched build stayed in the gem
home: the app kept loading the patch, and bundle pristine
failed on the restored checksum.
Look for the builds the restored lock names instead, as the
refresh that follows already does, and fall back to the
ruby-platform gem when the lock names none.
Fixes #2174
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_011f9aeQwRPCRjnzyQ3rqcZr
* Name platform archives on a vendored gem unwind
The vendored unwind's check of Bundler's cache dir judged only
<name>-<version>.gem, and stopped when the lock had no
ruby-platform entry: always, for a gem vendored from prebuilt
platform gems. A patched <name>-<version>-<platform>.gem that
a bundle cache took under the hosted pin went unnamed, and the
next install took it first.
Judge the archive of every build the restored lock names, as
the hosted restore does, with one warning per archive.
Refs #2174
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_011f9aeQwRPCRjnzyQ3rqcZr
* Judge the ruby archive beside platform builds
Review follow-ups to the vendored unwind's cache dir check:
- A gem whose lock names platform builds alone still has its
<name>-<version>.gem judged, as the hosted restore judges
it. A gem none of whose builds can be judged stays silent.
- The takeover e2e leg counts the stale-cache warnings and
asserts the archive was judged patched, not unchecked.
- CLI_CONTRACT.md states the archive shapes once for the
whole upstream_gem_stale_cache row.
Refs #2174
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_011f9aeQwRPCRjnzyQ3rqcZr
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 6579162 commit 6af8cd6
7 files changed
Lines changed: 417 additions & 54 deletions
File tree
- crates
- socket-patch-cli
- src/commands
- vendored_backend
- tests
- socket-patch-core/src/patch/redirect/upstream
- docs
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1241 | 1241 | | |
1242 | 1242 | | |
1243 | 1243 | | |
| 1244 | + | |
| 1245 | + | |
1244 | 1246 | | |
1245 | | - | |
1246 | | - | |
1247 | | - | |
1248 | | - | |
1249 | | - | |
1250 | | - | |
1251 | | - | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
1252 | 1254 | | |
1253 | 1255 | | |
1254 | 1256 | | |
| |||
1268 | 1270 | | |
1269 | 1271 | | |
1270 | 1272 | | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
1271 | 1293 | | |
1272 | 1294 | | |
1273 | 1295 | | |
| |||
1308 | 1330 | | |
1309 | 1331 | | |
1310 | 1332 | | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
1314 | | - | |
1315 | | - | |
1316 | | - | |
1317 | | - | |
1318 | | - | |
1319 | | - | |
1320 | | - | |
1321 | | - | |
1322 | | - | |
1323 | | - | |
| 1333 | + | |
1324 | 1334 | | |
1325 | 1335 | | |
1326 | 1336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
391 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
392 | 393 | | |
393 | 394 | | |
394 | 395 | | |
| |||
402 | 403 | | |
403 | 404 | | |
404 | 405 | | |
405 | | - | |
| 406 | + | |
406 | 407 | | |
407 | 408 | | |
408 | 409 | | |
| |||
0 commit comments