Commit 553c245
committed
fix(cloud-workers): install bundle deps after the integrity check, hash the vendor tree
The bundle install verifier walks the staged tree and compares its hash to
the expected bundle hash. Two live-E2E bugs: (1) it never walked vendor/,
so vendored workspace packages failed the hash; (2) npm install ran before
the check, so node_modules (intentionally hash-excluded) polluted the tree.
Verify the pristine bundle including vendor/, then run the production
npm install. Proven locally: VERIFY_INSTALL_JS returns 0 on the extracted
tarball and the worker entry resolves every module post-install.1 parent 301a4bf commit 553c245
1 file changed
Lines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
203 | 213 | | |
204 | 214 | | |
205 | 215 | | |
| |||
429 | 439 | | |
430 | 440 | | |
431 | 441 | | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | 442 | | |
438 | 443 | | |
439 | 444 | | |
| |||
470 | 475 | | |
471 | 476 | | |
472 | 477 | | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
473 | 487 | | |
474 | 488 | | |
475 | 489 | | |
| |||
0 commit comments