Repository navigation
Commit 85105c9
* Start fix for #1271
Assisted-by: Claude Code:claude-opus-5-5
* Patch yarn 1 lock blocks with an empty range
A dependency declared as "left-pad": "" is valid npm semver (the same
as "*"), and yarn 1 locks it under the key `left-pad@:`, merged with
other members' ranges as `left-pad@, left-pad@^1.3.0:`. The shared yarn
key parser rejected a pattern with an empty range, so every classic
reader dropped that block: a lock-only scan reported nothing to patch,
vendored mode failed with vendor_lock_entry_not_found, and hosted mode
pinned nothing while exiting 0.
Add a classic-grammar splitter that keeps an empty range and route the
classic readers and writers through it (lock inventory, vendored and
hosted rewriters, upstream restore, lockfile VEX, copy-source
classification). Berry keeps the strict parser: it never writes a
rangeless descriptor and skips one as malformed.
Fixes #1271
Assisted-by: Claude Code:claude-opus-5-5
* Move empty-range tests out of other test bodies
Three of the new #1271 tests and the VEX one landed inside a
neighbouring test body or between another test's doc comment and its
function, so they compiled as nested items and never ran. Move each to
its own top-level spot; all of them run and pass now.
Assisted-by: Claude Code:claude-opus-5-5
* Repin live minimist suites to the republished patch
Port of #1302 (fixes #1293). Production withdrew the free
minimist@1.2.2 patch 80630680-… and republished the same fix as
642d7f02-…, with a new patched index.js (afterHash ec956dca…). That
turned hosted-e2e and e2e_safety_pnpm red on main and here. No-ops once
main carries #1302 or #1301.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mzbk9WDZkhatFrCWUAyaNs
* Accept unprefixed patch file keys in the vlt backtest
The republished minimist patch (642d7f02-…) lists its files without
npm's `package/` prefix. `holds()` split every key on its first `/`,
so a bare `index.js` raised IndexError and every native vlt cell
errored. Strip the prefix only when present, like the CLI
(patch/apply.rs) and backtest-bun.py's oracle already do.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mzbk9WDZkhatFrCWUAyaNs
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 96312df commit 85105c9
8 files changed
Lines changed: 322 additions & 34 deletions
File tree
- crates
- socket-patch-cli/tests
- socket-patch-core/src
- formats/yarn
- patch/redirect
- vendor
- lock_inventory
- vex/discover
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
254 | 265 | | |
255 | 266 | | |
256 | 267 | | |
| |||
278 | 289 | | |
279 | 290 | | |
280 | 291 | | |
| 292 | + | |
281 | 293 | | |
282 | 294 | | |
283 | 295 | | |
| |||
288 | 300 | | |
289 | 301 | | |
290 | 302 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
298 | 329 | | |
299 | 330 | | |
300 | 331 | | |
| |||
356 | 387 | | |
357 | 388 | | |
358 | 389 | | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
359 | 396 | | |
360 | 397 | | |
361 | 398 | | |
| |||
591 | 628 | | |
592 | 629 | | |
593 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
594 | 639 | | |
595 | 640 | | |
596 | 641 | | |
| |||
773 | 818 | | |
774 | 819 | | |
775 | 820 | | |
776 | | - | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
777 | 829 | | |
778 | 830 | | |
779 | 831 | | |
| |||
802 | 854 | | |
803 | 855 | | |
804 | 856 | | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
805 | 892 | | |
806 | 893 | | |
807 | 894 | | |
| |||
813 | 900 | | |
814 | 901 | | |
815 | 902 | | |
816 | | - | |
817 | | - | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
818 | 911 | | |
819 | 912 | | |
820 | 913 | | |
| |||
847 | 940 | | |
848 | 941 | | |
849 | 942 | | |
850 | | - | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
851 | 951 | | |
852 | 952 | | |
853 | 953 | | |
| |||
894 | 994 | | |
895 | 995 | | |
896 | 996 | | |
| 997 | + | |
897 | 998 | | |
898 | 999 | | |
899 | 1000 | | |
| |||
975 | 1076 | | |
976 | 1077 | | |
977 | 1078 | | |
978 | | - | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
979 | 1082 | | |
980 | 1083 | | |
981 | 1084 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
69 | 85 | | |
70 | 86 | | |
71 | 87 | | |
72 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
73 | 99 | | |
74 | | - | |
| 100 | + | |
75 | 101 | | |
76 | 102 | | |
77 | 103 | | |
| |||
80 | 106 | | |
81 | 107 | | |
82 | 108 | | |
83 | | - | |
84 | | - | |
| 109 | + | |
| 110 | + | |
85 | 111 | | |
86 | | - | |
| 112 | + | |
87 | 113 | | |
88 | 114 | | |
89 | 115 | | |
| |||
169 | 195 | | |
170 | 196 | | |
171 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
172 | 228 | | |
173 | 229 | | |
174 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
0 commit comments