Skip to content

Commit f8c36bc

Browse files
committed
test(npm): cover Yarn 3.x PnP format and Bazel 8
Extend the Berry lockfile parser to metadata version 6 (Yarn 3.x): bare sha512 checksums without a cache-key prefix and unquoted dependency ranges, validated against artifacts generated by a real Yarn 3.8.7 install in the new e2e/pnp_zero_install_yarn3 fixture. Yarn 3 support is import/verification only: pnp_verify_test passes against the Yarn 3 cache, but the Yarn 3 .pnp.cjs runtime loads a second instance of itself when the project is reachable through more than one path spelling (as under Bazel's runfiles and output trees) and recurses until the stack overflows, so runtime execution stays Yarn 4+ and the limitation is documented in the fixture. The Yarn 4 e2e (runtime + verification) also passes on Bazel 8.4.2 in addition to 7.7.1. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013hsnpEj9uwyqyFo4W9swPQ
1 parent a0d437e commit f8c36bc

15 files changed

Lines changed: 11000 additions & 3 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.yarn/install-state.gz

0 commit comments

Comments
 (0)