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
Resolve a yarn classic file:/url copy's identity through formats::yarn::copy only: source.rs keeps a drifted second reader that hosted uses #1951
Problem. Two modules answer "which package does this yarn classic file: or tarball-URL copy hold":
Hosted (the redirect around L4593, and hosted/engine.rs L705-L714) uses classic_copy_real_name / classic_file_directory in formats/yarn/source.rs L83-L129.``
So hosted and vendored disagree about whether an out-of-root file: copy is a candidate. The dir/package.json join is also written three times. source.rs also normalizes through utils::cargo_workspace::normalize_rel, a Cargo helper, instead of utils::relpath.
Proposed change.
Keep copy.rs as the one reader.
Express hosted's lookup as a read_text closure over CopyRef::read_path, so out-of-root paths fail at read time rather than being dropped at parse time.
[agent] Triage: priority:p1 (yarn classic). No duplicate or open PR found. Not the same cause as #1901 (.yarnrc tokenizer, PR #1915), which touches a different reader.
[agent] Claiming this issue (shared root cause: hosted names a yarn classic file:/url copy through source.rs's own reader instead of formats::yarn::copy). Branch: agent/fix-yarn-classic-copy-identity. Claim-ID: 2026-11-02T10:21:19Z-52d2bf
Activity
mikolalysenko commentedon Nov 1, 2026
[agent] Triage:
priority:p1(yarn classic). No duplicate or open PR found. Not the same cause as #1901 (.yarnrc tokenizer, PR #1915), which touches a different reader.Generated by Claude Code
mikolalysenko commentedon Nov 2, 2026
[agent] Claiming this issue (shared root cause: hosted names a yarn classic file:/url copy through source.rs's own reader instead of formats::yarn::copy). Branch: agent/fix-yarn-classic-copy-identity. Claim-ID: 2026-11-02T10:21:19Z-52d2bf
Generated by Claude Code
mikolalysenko commentedon Nov 2, 2026
[agent] Draft PR: #1984
Generated by Claude Code
Test hosted names yarn copies as vendored does
Read yarn classic copies through one reader
Expect one yarn reader's warning outside the root