Skip to content

Commit e509c25

Browse files
committed
Fit the scoped-overrides bun.lockb fixture to the corpus
Every bun-lockb fixture is swept by the VEX discovery tests, which rewire minimist@1.2.2 at the root and compare against the golden corpus. Regenerate the scoped-overrides lock with the corpus's minimist@1.2.2 / is-number@7.0.0 dependencies and an override nothing installs (Bun still writes sCoPdOvR after cNfGvRsN), and add its golden entries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013g2AhipQxH9Q19uPZT6Aph
1 parent 13f02d6 commit e509c25

5 files changed

Lines changed: 51 additions & 3 deletions

File tree

Binary file not shown.
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1-
{"name":"root","private":true,"workspaces":["packages/*","!packages/b"],"dependencies":{"mkdirp":"0.5.6"},"overrides":{"mkdirp":{"minimist":"1.2.6"}}}
1+
{
2+
"name": "binary-scoped-overrides-fixture",
3+
"version": "1.0.0",
4+
"private": true,
5+
"workspaces": ["packages/*", "!packages/b"],
6+
"dependencies": {
7+
"minimist": "1.2.2",
8+
"is-number": "7.0.0"
9+
},
10+
"overrides": {
11+
"is-number": {
12+
"left-pad": "1.3.0"
13+
}
14+
}
15+
}

‎crates/socket-patch-core/tests/fixtures/bun-lockb/1.4.2-scoped-overrides/provenance.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"os": "linux",
44
"arch": "x86_64",
55
"command": "bun install --ignore-scripts",
6-
"sha256": "8457e49fdea55b978377ab1eb478156328079765db4206abe297003bf780d817"
6+
"sha256": "b5b1bcb3da1c54bc439014d0e1cbe3d214af5cbb7412a9060a46d7e7404655a6"
77
}

‎crates/socket-patch-core/tests/fixtures/bun-lockb/README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ and an empty `BUN_INSTALL_CACHE_DIR` to regenerate. Bun 1.2+ fixtures include
1414
- 1.3.14 / 1.4.2: current optional configuration extensions.
1515
- `*-extensions`: root and workspace scripts, a GitHub resolution, and
1616
catalogs on 1.2.23 and 1.4.2.
17-
- `1.4.2-scoped-overrides`: a nested `overrides` entry, whose `sCoPdOvR`
17+
- `1.4.2-scoped-overrides`: a nested `overrides` entry (unused by the
18+
installed packages), whose `sCoPdOvR`
1819
extension Bun writes after `cNfGvRsN`, and a `!` workspace pattern
1920
(#1492); written on Linux x64.
2021
- `0.8.1-production` / `1.0.0-production`: a production dependency and a

‎crates/socket-patch-core/tests/fixtures/vex-discover-golden/bun-lockb.json‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,39 @@
438438
"elsewhere": [],
439439
"live_claims": []
440440
},
441+
"bun-lockb/1.4.2-scoped-overrides": {
442+
"refs": [],
443+
"diagnostics": [],
444+
"recognized": [],
445+
"unlocked_pins": [],
446+
"elsewhere": [
447+
{
448+
"purl": "pkg:npm/is-number@7.0.0",
449+
"file": "bun.lockb"
450+
},
451+
{
452+
"purl": "pkg:npm/minimist@1.2.2",
453+
"file": "bun.lockb"
454+
}
455+
],
456+
"live_claims": []
457+
},
458+
"bun-lockb/1.4.2-scoped-overrides/packages/a": {
459+
"refs": [],
460+
"diagnostics": [],
461+
"recognized": [],
462+
"unlocked_pins": [],
463+
"elsewhere": [],
464+
"live_claims": []
465+
},
466+
"bun-lockb/1.4.2-scoped-overrides/packages/b": {
467+
"refs": [],
468+
"diagnostics": [],
469+
"recognized": [],
470+
"unlocked_pins": [],
471+
"elsewhere": [],
472+
"live_claims": []
473+
},
441474
"bun-lockb/late-dependent": {
442475
"refs": [],
443476
"diagnostics": [],

0 commit comments

Comments
 (0)