You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bd2db4b
Browse filesBrowse the repository at this point in the historyBrowse files
Fix yarn classic copy identity read two ways (#1951) (#1984)
* Start fix for #1951
Assisted-by: Claude Code:claude-opus-5-5
* Test hosted names yarn copies as vendored does
Hosted scans name a yarn classic file: directory copy through their
own reader, which drops a copy outside the project root (file:../x)
that vendored and VEX read and name. Add regression tests for the
rewriter and the hosted manifest read, plus the shared reader they
will use.
Refs #1951
Assisted-by: Claude Code:claude-opus-5-5
* Read yarn classic copies through one reader
A hosted scan named a yarn classic file: directory or url copy
through its own reader in formats/yarn/source.rs, which dropped a
directory outside the project root (file:../ext/x). Vendored and VEX
read that copy and named it, so hosted reported a clean pin while
yarn kept installing the unpatched out-of-root copy, without the
directory-skipped warning vendored gives.
Hosted now reads the copy's manifest and identity through
formats::yarn::copy (classic_copy_ref, CopyRef::read_path and
identity), the same reader vendored and VEX use: out-of-root copies
are read, absolute paths never are. The second reader and its third
dir/package.json join are deleted.
Fixes#1951
Assisted-by: Claude Code:claude-opus-5-5
* Expect one yarn reader's warning outside the root
A yarn classic file: directory copy outside the project root is now
named by the yarn rewriter, with the same
redirect_yarn_classic_directory_skipped warning an in-root copy gets,
instead of the engine's generic redirect_copy_unpatched fallback. The
e2e now asserts that code, and that the copy is named exactly once.
The rewriter test's doc says what it compares: which package the copy
holds.
Refs #1951
Assisted-by: Claude Code:claude-opus-5-5
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments